leds: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
This commit is contained in:
@@ -71,7 +71,7 @@ static int s3c24xx_led_remove(struct platform_device *dev)
|
||||
|
||||
static int s3c24xx_led_probe(struct platform_device *dev)
|
||||
{
|
||||
struct s3c24xx_led_platdata *pdata = dev->dev.platform_data;
|
||||
struct s3c24xx_led_platdata *pdata = dev_get_platdata(&dev->dev);
|
||||
struct s3c24xx_gpio_led *led;
|
||||
int ret;
|
||||
|
||||
|
Reference in New Issue
Block a user