Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Grant Likely and committed by
David S. Miller
5fb9fb13 374eeb5a

+3 -3
+3 -3
drivers/net/smc91x.c
··· 2400 2400 { .compatible = "smsc,lan91c94", }, 2401 2401 { .compatible = "smsc,lan91c111", }, 2402 2402 {}, 2403 - } 2403 + }; 2404 2404 MODULE_DEVICE_TABLE(of, smc91x_match); 2405 + #else 2406 + #define smc91x_match NULL 2405 2407 #endif 2406 2408 2407 2409 static struct dev_pm_ops smc_drv_pm_ops = { ··· 2418 2416 .name = CARDNAME, 2419 2417 .owner = THIS_MODULE, 2420 2418 .pm = &smc_drv_pm_ops, 2421 - #ifdef CONFIG_OF 2422 2419 .of_match_table = smc91x_match, 2423 - #endif 2424 2420 }, 2425 2421 }; 2426 2422