MLK-11340-43 usb: chipidea: imx: fix usb charger detection init NULL pointer
authorLi Jun <jun.li@freescale.com>
Tue, 11 Aug 2015 07:52:10 +0000 (15:52 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:20 +0000 (14:47 -0500)
commit4972c329b6b66966a22e23c571ad4a44662a343d
treeaf5e22fd811f04479361ce7c2c9e02bfa67bf214
parent339f5931228457ff0c71c21c6ff919986892f057
MLK-11340-43 usb: chipidea: imx: fix usb charger detection init NULL pointer

Dereference the charger->psy after the power_supply is created to fix the
null pointer issue.

Signed-off-by: Li Jun <b47624@freescale.com>
drivers/usb/chipidea/ci_hdrc_imx.c