]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:52 +0000 (00:42 +0200)
commit99f12694d49eae55132875a9b49db139b6035f04
tree7dcad1abdce0c0afa3f5c54d9f3c4b753745183b
parentb6abcbe91215ee2dd4421399b8579fcaddd3a948
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