diff options
author | Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> | 2010-12-14 15:09:40 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-01-06 10:18:16 -0500 |
commit | 7e95d1f1714cb993bc5b7e3a3d532b715b32d80a (patch) | |
tree | 7ba9a6221620274da2b871b07cef891d0e916e32 /arch/arm/mach-omap1 | |
parent | 75c52a49630a478ffe9c1473441779676817fce6 (diff) |
mtd: nand: ams-delta: convert to platform driver
In its current form, the driver may interfere with different hardware on
different boards if built into the kernel, hence is not suitable for
inclusion into a defconfig, inteded to be usable with multiple OMAP1 cpu and
machine types.
Convert it to a platform driver, that should be free from this issue.
Created and tested against linux-2.6.37-rc5 on Amstrad Delta.
Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 1d4163b9f0b7..81282f5e8b2d 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -181,6 +181,11 @@ static struct omap_board_config_kernel ams_delta_config[] = { | |||
181 | { OMAP_TAG_LCD, &ams_delta_lcd_config }, | 181 | { OMAP_TAG_LCD, &ams_delta_lcd_config }, |
182 | }; | 182 | }; |
183 | 183 | ||
184 | static struct platform_device ams_delta_nand_device = { | ||
185 | .name = "ams-delta-nand", | ||
186 | .id = -1 | ||
187 | }; | ||
188 | |||
184 | static struct resource ams_delta_kp_resources[] = { | 189 | static struct resource ams_delta_kp_resources[] = { |
185 | [0] = { | 190 | [0] = { |
186 | .start = INT_KEYBOARD, | 191 | .start = INT_KEYBOARD, |
@@ -263,6 +268,7 @@ static struct omap1_cam_platform_data ams_delta_camera_platform_data = { | |||
263 | }; | 268 | }; |
264 | 269 | ||
265 | static struct platform_device *ams_delta_devices[] __initdata = { | 270 | static struct platform_device *ams_delta_devices[] __initdata = { |
271 | &ams_delta_nand_device, | ||
266 | &ams_delta_kp_device, | 272 | &ams_delta_kp_device, |
267 | &ams_delta_lcd_device, | 273 | &ams_delta_lcd_device, |
268 | &ams_delta_led_device, | 274 | &ams_delta_led_device, |