]> err.no Git - linux-2.6/commit
USB: drivers/usb/serial/bus.c: Fix incompatible pointer type warning
authorSatyam Sharma <satyam@infradead.org>
Sun, 2 Sep 2007 20:12:43 +0000 (01:42 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 Sep 2007 14:48:17 +0000 (07:48 -0700)
commit03fc370bdc1b31f3d09bd88d65bc50c03f450a9d
treea5985466ccde42e2076531361bee516554b98291
parente6a20ff999fe849d1f5f15d5e14763f5a553778f
USB: drivers/usb/serial/bus.c: Fix incompatible pointer type warning

drivers/usb/serial/bus.c: In function usb_serial_bus_deregister:
drivers/usb/serial/bus.c:185:
warning: passing argument 1 of free_dynids from incompatible pointer type

Above build warning comes when CONFIG_HOTPLUG=n because argument of
free_dynids() in serial/bus.c is a struct usb_serial_driver, not a
struct usb_driver. This is not a runtime bug, because the function
is an empty stub and never dereferences the passed pointer anyway.

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/bus.c