usb: chipidea: imx: simplify the usbmisc callers
authorPeter Chen <peter.chen@freescale.com>
Wed, 11 Feb 2015 04:44:44 +0000 (12:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:19:08 +0000 (16:19 +0100)
commita4cf1b14cfbc57a12ea2d997b93735a99f70d810
tree1c1a514500be4b0f290e9c9299575e3eb135f3c3
parent73dea4a912b2bfe955305de4891018f9e71e399d
usb: chipidea: imx: simplify the usbmisc callers

Move struct imx_usbmisc_data NULL pointer judgement from caller to
each API, it can simplify the caller.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/usbmisc_imx.c