diff options
author | 2023-08-09 16:48:49 +0800 | |
---|---|---|
committer | 2023-08-12 10:03:13 +0200 | |
commit | bb8dc3df68a9f3d11400482d01ce7d241093ef7a (patch) | |
tree | cfc67a4810ce801b00dca8d48a662aaa4b0b1965 /drivers/usb | |
parent | USB: Remove Wireless USB and UWB documentation (diff) | |
download | linux-bb8dc3df68a9f3d11400482d01ce7d241093ef7a.tar.gz linux-bb8dc3df68a9f3d11400482d01ce7d241093ef7a.tar.bz2 linux-bb8dc3df68a9f3d11400482d01ce7d241093ef7a.zip |
usb: gadget/snps_udc_plat: Remove redundant of_match_ptr()
The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here. Remove of_match_ptr() and CONFIG_OF.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230809084849.2410477-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/udc/snps_udc_plat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/snps_udc_plat.c b/drivers/usb/gadget/udc/snps_udc_plat.c index 35c7a149b977..547af2ed9e5e 100644 --- a/drivers/usb/gadget/udc/snps_udc_plat.c +++ b/drivers/usb/gadget/udc/snps_udc_plat.c @@ -300,7 +300,6 @@ static const struct dev_pm_ops udc_plat_pm_ops = { }; #endif -#if defined(CONFIG_OF) static const struct of_device_id of_udc_match[] = { { .compatible = "brcm,ns2-udc", }, { .compatible = "brcm,cygnus-udc", }, @@ -308,14 +307,13 @@ static const struct of_device_id of_udc_match[] = { { } }; MODULE_DEVICE_TABLE(of, of_udc_match); -#endif static struct platform_driver udc_plat_driver = { .probe = udc_plat_probe, .remove_new = udc_plat_remove, .driver = { .name = "snps-udc-plat", - .of_match_table = of_match_ptr(of_udc_match), + .of_match_table = of_udc_match, #ifdef CONFIG_PM_SLEEP .pm = &udc_plat_pm_ops, #endif |