usb: host: ehci-platform: BUG_ON() to WARN_ON() on probe
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 7 Aug 2012 01:06:53 +0000 (18:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:05:32 +0000 (12:05 -0700)
commit86e4cb35f2260374df4139c2352afe7fe247cb60
tree2667b17c0fb1fe6832a156463a69f348915b2ab5
parent6df471ea04bd65603b67d821f2df359cc2cfac68
usb: host: ehci-platform: BUG_ON() to WARN_ON() on probe

usb_ehci_pdata is certainly required in ehci-platform driver.
This patch avoids using BUG_ON() from driver,
and return from probe with WARN_ON() if pdata was NULL.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c