diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2013-03-09 09:37:53 -0500 |
---|---|---|
committer | Tomasz Figa <tomasz.figa@gmail.com> | 2013-08-12 15:53:22 -0400 |
commit | 7fa33bdb4c44155e390c9ebbc5aa4c5cfc73f6fa (patch) | |
tree | 35ccb6a980736281e7617cc3f00dd803e4082d6a /arch/arm/mach-s3c64xx | |
parent | d1a8d3ccdf88346d1bb6e733ee8b6b495200290d (diff) |
ARM: SAMSUNG: Modify board files to use new PWM platform device
This patch modifies any board files using the legacy PWM device to use
the new device instead.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Mark Brown <broonie@linaro.org>
Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-hmt.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 5 |
4 files changed, 9 insertions, 8 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index 8ad88ace795a..28889cc788b3 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -120,7 +120,7 @@ static struct platform_device crag6410_backlight_device = { | |||
120 | .name = "pwm-backlight", | 120 | .name = "pwm-backlight", |
121 | .id = -1, | 121 | .id = -1, |
122 | .dev = { | 122 | .dev = { |
123 | .parent = &s3c_device_timer[0].dev, | 123 | .parent = &samsung_device_pwm.dev, |
124 | .platform_data = &crag6410_backlight_data, | 124 | .platform_data = &crag6410_backlight_data, |
125 | }, | 125 | }, |
126 | }; | 126 | }; |
@@ -375,7 +375,7 @@ static struct platform_device *crag6410_devices[] __initdata = { | |||
375 | &s3c_device_fb, | 375 | &s3c_device_fb, |
376 | &s3c_device_ohci, | 376 | &s3c_device_ohci, |
377 | &s3c_device_usb_hsotg, | 377 | &s3c_device_usb_hsotg, |
378 | &s3c_device_timer[0], | 378 | &samsung_device_pwm, |
379 | &s3c64xx_device_iis0, | 379 | &s3c64xx_device_iis0, |
380 | &s3c64xx_device_iis1, | 380 | &s3c64xx_device_iis1, |
381 | &samsung_device_keypad, | 381 | &samsung_device_keypad, |
diff --git a/arch/arm/mach-s3c64xx/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index 5b7f357d8c22..f39569e0f2e6 100644 --- a/arch/arm/mach-s3c64xx/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -123,7 +123,7 @@ static struct platform_pwm_backlight_data hmt_backlight_data = { | |||
123 | static struct platform_device hmt_backlight_device = { | 123 | static struct platform_device hmt_backlight_device = { |
124 | .name = "pwm-backlight", | 124 | .name = "pwm-backlight", |
125 | .dev = { | 125 | .dev = { |
126 | .parent = &s3c_device_timer[1].dev, | 126 | .parent = &samsung_device_pwm.dev, |
127 | .platform_data = &hmt_backlight_data, | 127 | .platform_data = &hmt_backlight_data, |
128 | }, | 128 | }, |
129 | }; | 129 | }; |
@@ -239,7 +239,7 @@ static struct platform_device *hmt_devices[] __initdata = { | |||
239 | &s3c_device_nand, | 239 | &s3c_device_nand, |
240 | &s3c_device_fb, | 240 | &s3c_device_fb, |
241 | &s3c_device_ohci, | 241 | &s3c_device_ohci, |
242 | &s3c_device_timer[1], | 242 | &samsung_device_pwm, |
243 | &hmt_backlight_device, | 243 | &hmt_backlight_device, |
244 | &hmt_leds_device, | 244 | &hmt_leds_device, |
245 | }; | 245 | }; |
diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c index 58ac99041274..86d980b448fd 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq.c +++ b/arch/arm/mach-s3c64xx/mach-smartq.c | |||
@@ -157,7 +157,7 @@ static struct platform_pwm_backlight_data smartq_backlight_data = { | |||
157 | static struct platform_device smartq_backlight_device = { | 157 | static struct platform_device smartq_backlight_device = { |
158 | .name = "pwm-backlight", | 158 | .name = "pwm-backlight", |
159 | .dev = { | 159 | .dev = { |
160 | .parent = &s3c_device_timer[1].dev, | 160 | .parent = &samsung_device_pwm.dev, |
161 | .platform_data = &smartq_backlight_data, | 161 | .platform_data = &smartq_backlight_data, |
162 | }, | 162 | }, |
163 | }; | 163 | }; |
@@ -246,7 +246,7 @@ static struct platform_device *smartq_devices[] __initdata = { | |||
246 | &s3c_device_i2c0, | 246 | &s3c_device_i2c0, |
247 | &s3c_device_ohci, | 247 | &s3c_device_ohci, |
248 | &s3c_device_rtc, | 248 | &s3c_device_rtc, |
249 | &s3c_device_timer[1], | 249 | &samsung_device_pwm, |
250 | &s3c_device_ts, | 250 | &s3c_device_ts, |
251 | &s3c_device_usb_hsotg, | 251 | &s3c_device_usb_hsotg, |
252 | &s3c64xx_device_iis0, | 252 | &s3c64xx_device_iis0, |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index bd3295a19ad7..d90b450c5645 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -274,6 +274,7 @@ static struct platform_device *smdk6410_devices[] __initdata = { | |||
274 | &s3c_device_i2c1, | 274 | &s3c_device_i2c1, |
275 | &s3c_device_fb, | 275 | &s3c_device_fb, |
276 | &s3c_device_ohci, | 276 | &s3c_device_ohci, |
277 | &samsung_device_pwm, | ||
277 | &s3c_device_usb_hsotg, | 278 | &s3c_device_usb_hsotg, |
278 | &s3c64xx_device_iisv4, | 279 | &s3c64xx_device_iisv4, |
279 | &samsung_device_keypad, | 280 | &samsung_device_keypad, |
@@ -691,9 +692,9 @@ static void __init smdk6410_machine_init(void) | |||
691 | 692 | ||
692 | s3c_ide_set_platdata(&smdk6410_ide_pdata); | 693 | s3c_ide_set_platdata(&smdk6410_ide_pdata); |
693 | 694 | ||
694 | samsung_bl_set(&smdk6410_bl_gpio_info, &smdk6410_bl_data); | ||
695 | |||
696 | platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); | 695 | platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); |
696 | |||
697 | samsung_bl_set(&smdk6410_bl_gpio_info, &smdk6410_bl_data); | ||
697 | } | 698 | } |
698 | 699 | ||
699 | MACHINE_START(SMDK6410, "SMDK6410") | 700 | MACHINE_START(SMDK6410, "SMDK6410") |