usb: ohci-nxp: fix use of integer as pointer

The hcd pointer in ohci_hcd_nxp_probe() is
being initialised with a 0, so fix to NULL to
avoid the following sparse warning:

drivers/usb/host/ohci-nxp.c:153:31: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Link: https://lore.kernel.org/r/20191015141945.16067-1-ben.dooks@codethink.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ben Dooks 2019-10-15 15:19:45 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель a69dff9954
Коммит 09e2a8b78c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -150,7 +150,7 @@ static void ohci_nxp_stop_hc(void)
static int ohci_hcd_nxp_probe(struct platform_device *pdev) static int ohci_hcd_nxp_probe(struct platform_device *pdev)
{ {
struct usb_hcd *hcd = 0; struct usb_hcd *hcd = NULL;
const struct hc_driver *driver = &ohci_nxp_hc_driver; const struct hc_driver *driver = &ohci_nxp_hc_driver;
struct resource *res; struct resource *res;
int ret = 0, irq; int ret = 0, irq;