--
Andrea
On 25/lug/2013, at 11:54, Graeme Gregory
graeme.gregory@linaro.org wrote:
> On 24/07/13 21:27, Al Stone wrote:
>> On 07/24/2013 02:26 PM, Graeme Gregory wrote:
>>> On 24/07/13 21:24, Al Stone wrote:
>>>> 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.
>>> I know, I saw the ASL even if I havent seen the code ;-)
>>>
>>> We will need to make a registry on wiki!
>>>
>>> G
>>
>> I was thinking that, too; you want to start it or shall I?
> It is created.
>
>
https://wiki.linaro.org/LEG/Engineering/Kernel/ACPI/ACPILinaroRegistry
>
> Graeme
>
>
> _______________________________________________
> Linaro-acpi mailing list
> Linaro-acpi@lists.linaro.org
>
http://lists.linaro.org/mailman/listinfo/linaro-acpi