usb: phy: phy-mxs-usb: fix a possible NULL dereference
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 12 Nov 2015 07:45:52 +0000 (08:45 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 17 Nov 2015 17:35:48 +0000 (11:35 -0600)
commit89d99aea94a5bf8eae530cd77df40904d382946c
treec5aff6debc0b48739d851c1fc7f3120e29ea5d76
parentb9e51b2b1fda19143f48d182ed7a2943f21e1ae4
usb: phy: phy-mxs-usb: fix a possible NULL dereference

of_match_device could return NULL, and so cause a NULL pointer
dereference later.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mxs-usb.c