]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb.h: Always declare usb function prototypes
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 Jun 2015 15:04:04 +0000 (17:04 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 19 Jun 2015 12:32:12 +0000 (14:32 +0200)
commitb335fe681075bd6bd3e6842bad12a0ccb573dc4f
tree06cd0486adadb4678b009c675ce6b91d7550b468
parentc6265f7f3410b5e5763181cdd123a3f6fcd9fd58
usb.h: Always declare usb function prototypes

There is no harm in declaring the function prototypes even if nothing
implements them, and when CONFIG_DM_USB=y the various usb functions are
available regardless of any controller drivers being enabled.

This fixes compile warnings due to missing prototypes on ARCHs where
the ARCH Kconfig always enables CONFIG_DM_USB and various usb drivers.

One could argue that in the case of no controllers CONFIG_DM_USB should not
be set, but this problem is typically seen during bringup of boards which
do actually have usb controllers.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
include/usb.h