leds-lp8788: fix a parent device in _probe()
authorKim, Milo <Milo.Kim@ti.com>
Thu, 3 Jan 2013 06:28:12 +0000 (22:28 -0800)
committerBryan Wu <cooloney@gmail.com>
Sat, 2 Feb 2013 01:47:05 +0000 (17:47 -0800)
commita1932edf8baaf2b09ad72b119c1f9749ad4397f2
tree486cb7da402679943d8b85b48c86c3797fe7035f
parent08541cbcc7386fa78efb454a92ddbfb1a2859cf9
leds-lp8788: fix a parent device in _probe()

The lp8788-keyled is a platform driver of lp8788-mfd. The platform
device is allocated when mfd_add_devices() is called in lp8788-mfd.
On the other hand, 'lp->dev' is the i2c client device.

Therefore, this 'platform_device' is a proper parent device in case
of resource managed mem alloc, registering led device and device
kernel messages.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp8788.c