提交 a7f12a21 编写于 作者: J Javier Martinez Canillas 提交者: Greg Kroah-Hartman

usb: phy: isp1301: Fix build warning when CONFIG_OF is disabled

Commit fd567653 ("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: fd567653 ("usb: phy: isp1301: Add OF device ID table")
Reported-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d3519b9d
...@@ -136,7 +136,7 @@ static int isp1301_remove(struct i2c_client *client) ...@@ -136,7 +136,7 @@ static int isp1301_remove(struct i2c_client *client)
static struct i2c_driver isp1301_driver = { static struct i2c_driver isp1301_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.of_match_table = of_match_ptr(isp1301_of_match), .of_match_table = isp1301_of_match,
}, },
.probe = isp1301_probe, .probe = isp1301_probe,
.remove = isp1301_remove, .remove = isp1301_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册