]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: isp1301: Fix build warning when CONFIG_OF is disabled
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 28 Mar 2017 19:07:38 +0000 (15:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 10:13:50 +0000 (12:13 +0200)
commit6373398874d38a1fd9c1f69390a746ab2912ac1f
tree654e09fad96b147f4cbc67051240b481cb857f4e
parent43561e6eeadaa5bce0a45b824d67c36fede8b3be
usb: phy: isp1301: Fix build warning when CONFIG_OF is disabled

Commit 66d681a06045 ("usb: phy: isp1301: Add OF device ID table")
added an OF device ID table, but used the of_match_ptr() macro
that will lead to a build warning if CONFIG_OF symbol is disabled:

drivers/usb/phy//phy-isp1301.c:36:34: warning: ‘isp1301_of_match’ defined but not used [-Wunused-const-variable=]
 static const struct of_device_id isp1301_of_match[] = {
                                  ^~~~~~~~~~~~~~~~

Fixes: 66d681a06045 ("usb: phy: isp1301: Add OF device ID table")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-isp1301.c