]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: Fix NULL pointer exception during usb_get_phy
authorRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 10 May 2013 09:45:08 +0000 (15:15 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 15 May 2013 14:32:47 +0000 (17:32 +0300)
commit6391eea3fd7bbc616d5ee5c6d5e35a3111c5fc90
treee5edc969a6f01954507c3cf7224efa64e6f52f0d
parentae764b9453df9f216310ce799f8696b0de48e6e5
usb: phy: Fix NULL pointer exception during usb_get_phy

Upon initialisation (driver probe) a NULL pointer exception
is triggered. This is due to lack of initialisation of
device field in phy structure, which is used by phy
framework in usb_get_phy().

Fix it by initialising the device field.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-fsl-usb.c
drivers/usb/phy/phy-gpio-vbus-usb.c
drivers/usb/phy/phy-isp1301.c