diff options
author | Felipe Balbi <balbi@ti.com> | 2012-02-15 08:34:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-16 02:16:40 +0100 |
commit | 5407a3c3d942e75d4d123d213fd692bce5acc961 (patch) | |
tree | 7fc32252ca8249011d74a380006181aa55482361 /drivers/xen/xenbus/xenbus_xs.c | |
parent | Merge tag 'for-usb-next-2012-02-14' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-5407a3c3d942e75d4d123d213fd692bce5acc961.tar.xz linux-5407a3c3d942e75d4d123d213fd692bce5acc961.zip |
usb: host: ehci: allow ehci_* symbols to be unused
not all platforms will use all of those ehci_*
symbols on their hc_driver structure. Sometimes
we might need to provide a modified version of
a certain method or not provide it at all, as is
the case with OMAPs which don't support port handoff
feature.
Whenever we compile a kernel for an OMAP board with
EHCI enabled, we get compile warnings:
drivers/usb/host/ehci-hub.c:1079: warning: 'ehci_relinquish_port' \
defined but not used
drivers/usb/host/ehci-hub.c:1088: warning: 'ehci_port_handed_over' \
defined but not used
In order to cleanup those warnings, we're adding
__maybe_unused annotation to those functions.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/xen/xenbus/xenbus_xs.c')
0 files changed, 0 insertions, 0 deletions