aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-wm831x-status.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-23 06:28:33 -0400
committerBryan Wu <cooloney@gmail.com>2013-06-20 19:21:33 -0400
commit84196a2ffbac42f1649cc6e193be6016b233d312 (patch)
tree7f65cd4311e8db3c250f85a5527c4b8b73247f15 /drivers/leds/leds-wm831x-status.c
parentbfa855bad39b7a266c00efdd2dc5887bcd41bb70 (diff)
leds: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-wm831x-status.c')
-rw-r--r--drivers/leds/leds-wm831x-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-wm831x-status.c b/drivers/leds/leds-wm831x-status.c
index 6bd5c679d877..120815a42701 100644
--- a/drivers/leds/leds-wm831x-status.c
+++ b/drivers/leds/leds-wm831x-status.c
@@ -241,7 +241,7 @@ static int wm831x_status_probe(struct platform_device *pdev)
241 GFP_KERNEL); 241 GFP_KERNEL);
242 if (!drvdata) 242 if (!drvdata)
243 return -ENOMEM; 243 return -ENOMEM;
244 dev_set_drvdata(&pdev->dev, drvdata); 244 platform_set_drvdata(pdev, drvdata);
245 245
246 drvdata->wm831x = wm831x; 246 drvdata->wm831x = wm831x;
247 drvdata->reg = res->start; 247 drvdata->reg = res->start;