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:
@@ -203,7 +203,7 @@ static int wm8350_led_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct regulator *isink, *dcdc;
|
||||
struct wm8350_led *led;
|
||||
struct wm8350_led_platform_data *pdata = pdev->dev.platform_data;
|
||||
struct wm8350_led_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
int i;
|
||||
|
||||
if (pdata == NULL) {
|
||||
|
مرجع در شماره جدید
Block a user