]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lp8788-buck: fix a parent deivce in _probe()
authorKim, Milo <Milo.Kim@ti.com>
Thu, 3 Jan 2013 06:31:02 +0000 (06:31 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 3 Jan 2013 11:28:52 +0000 (11:28 +0000)
commit3b0e8f128190982e2a8872e208723de09538e36b
tree489944777bdfdc5ae498aa648f097f580c9aaa79
parenta49f0d1ea3ec94fc7cf33a7c36a16343b74bd565
lp8788-buck: fix a parent deivce in _probe()

 The lp8788-buck 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 a regulator and device kernel message.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/lp8788-buck.c