commit | a1932edf8baaf2b09ad72b119c1f9749ad4397f2 | [log] [tgz] |
---|---|---|
author | Kim, Milo <Milo.Kim@ti.com> | Wed Jan 02 22:28:12 2013 -0800 |
committer | Bryan Wu <cooloney@gmail.com> | Fri Feb 01 17:47:05 2013 -0800 |
tree | 486cb7da402679943d8b85b48c86c3797fe7035f | |
parent | 08541cbcc7386fa78efb454a92ddbfb1a2859cf9 [diff] |
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>