diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-08-07 03:06:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-10 21:05:32 +0200 |
commit | 86e4cb35f2260374df4139c2352afe7fe247cb60 (patch) | |
tree | 2667b17c0fb1fe6832a156463a69f348915b2ab5 /drivers/usb/host/ohci-platform.c | |
parent | drivers/usb/host/ehci-xilinx-of.c: use devm_ functions (diff) | |
download | linux-86e4cb35f2260374df4139c2352afe7fe247cb60.tar.xz linux-86e4cb35f2260374df4139c2352afe7fe247cb60.zip |
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>
Diffstat (limited to 'drivers/usb/host/ohci-platform.c')
0 files changed, 0 insertions, 0 deletions