Re: [PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-02 Thread Vivien Didelot
Hi all, >>> This commit introduces a new module_switch_driver macro, similar to >>> module_platform_driver and such, to reduce boilerplate when declaring >>> DSA switch drivers. >>> >>> In order to use the module_driver macro, register_switch_driver needed >>> to be changed to return an int instea

Re: [PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-02 Thread Vivien Didelot
Hi Florian, >> This commit introduces a new module_switch_driver macro, similar to >> module_platform_driver and such, to reduce boilerplate when declaring >> DSA switch drivers. >> >> In order to use the module_driver macro, register_switch_driver needed >> to be changed to return an int instead

Re: [PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-01 Thread Florian Fainelli
On 01/05/15 15:09, Vivien Didelot wrote: > This commit introduces a new module_switch_driver macro, similar to > module_platform_driver and such, to reduce boilerplate when declaring > DSA switch drivers. > > In order to use the module_driver macro, register_switch_driver needed > to be changed to

[PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-01 Thread Vivien Didelot
This commit introduces a new module_switch_driver macro, similar to module_platform_driver and such, to reduce boilerplate when declaring DSA switch drivers. In order to use the module_driver macro, register_switch_driver needed to be changed to return an int instead of void, so make it return 0.