diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2017-03-28 15:07:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-29 12:13:50 +0200 |
commit | a7f12a21f6b32bdd8d76d3af81eef9e72ce41ec0 (patch) | |
tree | 654e09fad96b147f4cbc67051240b481cb857f4e /drivers/usb/phy/phy-isp1301.c | |
parent | d3519b9d9606991a1305596348b6d690bfa3eb27 (diff) | |
download | op-kernel-dev-a7f12a21f6b32bdd8d76d3af81eef9e72ce41ec0.zip op-kernel-dev-a7f12a21f6b32bdd8d76d3af81eef9e72ce41ec0.tar.gz |
usb: phy: isp1301: Fix build warning when CONFIG_OF is disabled
Commit fd567653bdb9 ("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: fd567653bdb9 ("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>
Diffstat (limited to 'drivers/usb/phy/phy-isp1301.c')
-rw-r--r-- | drivers/usb/phy/phy-isp1301.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-isp1301.c b/drivers/usb/phy/phy-isp1301.c index b3b33cf..f333024 100644 --- a/drivers/usb/phy/phy-isp1301.c +++ b/drivers/usb/phy/phy-isp1301.c @@ -136,7 +136,7 @@ static int isp1301_remove(struct i2c_client *client) static struct i2c_driver isp1301_driver = { .driver = { .name = DRV_NAME, - .of_match_table = of_match_ptr(isp1301_of_match), + .of_match_table = isp1301_of_match, }, .probe = isp1301_probe, .remove = isp1301_remove, |