On 07/24/2013 04:55 AM, Graeme Gregory wrote:
Add device ID LINA0003 for this device and add the match table.
As its a platform device it needs no other code and will be probed in by acpi_platform once device ID is added.
Signed-off-by: Graeme Gregory graeme.gregory@linaro.org
drivers/net/ethernet/smsc/smc91x.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index dfbf978..e5b3e24 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -89,6 +89,10 @@ static const char version[] =
#include <asm/io.h>
+#ifdef CONFIG_ACPI +#include <linux/acpi.h> +#endif
#include "smc91x.h"
#ifndef SMC_NOWAIT
@@ -2387,6 +2391,14 @@ static const struct of_device_id smc91x_match[] = { MODULE_DEVICE_TABLE(of, smc91x_match); #endif
+#ifdef CONFIG_ACPI +static const struct acpi_device_id smc91x_acpi_match[] = {
- { "LINA0003", },
- { }
+}; +MODULE_DEVICE_TABLE(acpi, smc91x_acpi_match) +#endif
- static struct dev_pm_ops smc_drv_pm_ops = { .suspend = smc_drv_suspend, .resume = smc_drv_resume,
@@ -2400,6 +2412,7 @@ static struct platform_driver smc_driver = { .owner = THIS_MODULE, .pm = &smc_drv_pm_ops, .of_match_table = of_match_ptr(smc91x_match),
}, };.acpi_match_table = ACPI_PTR(smc91x_acpi_match),
Whew. I'm glad you used LINA0003; I've been using LINA0002 for GPIO.