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:

committad av
Bryan Wu

förälder
8465b01827
incheckning
87aae1ea82
@@ -93,7 +93,7 @@ static void da903x_led_set(struct led_classdev *led_cdev,
|
||||
|
||||
static int da903x_led_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct led_info *pdata = pdev->dev.platform_data;
|
||||
struct led_info *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct da903x_led *led;
|
||||
int id, ret;
|
||||
|
||||
|
Referens i nytt ärende
Block a user