aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/033-Fix-structure-fsl_ssd1289_data-definition-bug-for-SS.patch
blob: 1d1f677051fa6f715d1f262736998f0a695703d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From 1ebacc69cb9b9c2508b1e75cb23ef572cda51eec Mon Sep 17 00:00:00 2001
From: Alison Wang <b18965@freescale.com>
Date: Thu, 4 Aug 2011 09:59:47 +0800
Subject: [PATCH 33/52] Fix structure fsl_ssd1289_data definition bug for SSD1289 FB driver

Fix the bug that structure fsl_ssd1289_data definition depends on
DSPI enabled for SSD1289 framebuffer driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
---
 arch/m68k/coldfire/m5441x/devices.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

--- a/arch/m68k/coldfire/m5441x/devices.c
+++ b/arch/m68k/coldfire/m5441x/devices.c
@@ -138,6 +138,16 @@ static struct platform_device nfc_device
 };
 #endif
 
+#if defined(CONFIG_FB_FSL_SSD1289) || defined(CONFIG_FB_FSL_SSD1289_MODULE)
+static struct fsl_ssd1289_fb_display fsl_ssd1289_data = {
+	.width		= 320,
+	.height		= 240,
+	.xres		= 320,
+	.yres		= 240,
+	.bpp		= 16,
+};
+#endif
+
 /*
  * DSPI
  */
@@ -197,16 +207,6 @@ static struct coldfire_dspi_chip at26df0
 };
 #endif
 
-#if defined(CONFIG_FB_FSL_SSD1289) || defined(CONFIG_FB_FSL_SSD1289_MODULE)
-static struct fsl_ssd1289_fb_display fsl_ssd1289_data = {
-	.width		= 320,
-	.height		= 240,
-	.xres		= 320,
-	.yres		= 240,
-	.bpp		= 16,
-};
-#endif
-
 #if defined(CONFIG_SSD1289_SPI_MODE)
 static struct coldfire_dspi_chip ssd1289_chip_info = {
 	.mode = SPI_MODE_0,