net: fix smc91x.c device tree support
Subsystems (2)
PATCH 1/1 net: fix smc91x.c device tree support
Fix missing semicolon at end of smc91x.c match tabledevice driver. Also remove unnecessary #ifdef around of_match_table pointer.
Signed-off-by Grant Likely <[email protected]>
--- drivers/net/smc91x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/smc91x.c +3 -3
@@ -2400,8 +2400,10 @@ static const struct of_device_id smc91x_match[] = { { .compatible = "smsc,lan91c94", }, { .compatible = "smsc,lan91c111", }, {}, -} +}; MODULE_DEVICE_TABLE(of, smc91x_match); +#else +#define smc91x_match NULL #endif static struct dev_pm_ops smc_drv_pm_ops = {
@@ -2416,9 +2418,7 @@ static struct platform_driver smc_driver = { .name = CARDNAME, .owner = THIS_MODULE, .pm = &smc_drv_pm_ops, -#ifdef CONFIG_OF .of_match_table = smc91x_match, -#endif }, };
From: Grant Likely <[email protected]>
Date: Sat, 04 Jun 2011 01:31:27 -0600
Quoted 4 lines
Fix missing semicolon at end of
smc91x.cmatch tabledevice driver. Also remove unnecessary #ifdef aroundof_match_tablepointer.Signed-off-by Grant Likely <[email protected]>
Applied, thanks Grant.