drivers/net: Use of_match_ptr() macro in smc91x.c
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
bd7790286b
Коммит
89ce376c6b
|
@ -2386,8 +2386,6 @@ static const struct of_device_id smc91x_match[] = {
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, smc91x_match);
|
MODULE_DEVICE_TABLE(of, smc91x_match);
|
||||||
#else
|
|
||||||
#define smc91x_match NULL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct dev_pm_ops smc_drv_pm_ops = {
|
static struct dev_pm_ops smc_drv_pm_ops = {
|
||||||
|
@ -2402,7 +2400,7 @@ static struct platform_driver smc_driver = {
|
||||||
.name = CARDNAME,
|
.name = CARDNAME,
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.pm = &smc_drv_pm_ops,
|
.pm = &smc_drv_pm_ops,
|
||||||
.of_match_table = smc91x_match,
|
.of_match_table = of_match_ptr(smc91x_match),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче