diff options
| author | Javier Martinez Canillas <[email protected]> | 2016-10-17 11:05:46 -0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-10-17 13:03:03 -0400 |
| commit | 0822b43e4f08af3619a5dbf59f5036872c3ea323 (patch) | |
| tree | deecf1df2f06f76dcd6d8103dc8d0e1dfe5ef31a /scripts/gdb/linux/lists.py | |
| parent | 03eaae52537f4bbe2e565535f2aa38d80f92e994 (diff) | |
net: dsa: bcm_sf2: Fix module autoload for OF registration
If the driver is built as a module, autoload won't work because the module
alias information is not filled. So user-space can't match the registered
device with the corresponding module.
Export the module alias information using the MODULE_DEVICE_TABLE() macro.
Before this patch:
$ modinfo drivers/net/dsa/bcm_sf2.ko | grep alias
alias: platform:brcm-sf2
After this patch:
$ modinfo drivers/net/dsa/bcm_sf2.ko | grep alias
alias: platform:brcm-sf2
alias: of:N*T*Cbrcm,bcm7445-switch-v4.0C*
alias: of:N*T*Cbrcm,bcm7445-switch-v4.0
Signed-off-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions