Skip to content

Commit ebd8ebf

Browse files
luisbgdavem330
authored andcommitted
net: moxa: Fix module autoload for OF platform driver
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2386006 commit ebd8ebf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/moxa/moxart_ether.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ static const struct of_device_id moxart_mac_match[] = {
552552
{ .compatible = "moxa,moxart-mac" },
553553
{ }
554554
};
555+
MODULE_DEVICE_TABLE(of, moxart_mac_match);
555556

556557
static struct platform_driver moxart_mac_driver = {
557558
.probe = moxart_mac_probe,

0 commit comments

Comments
 (0)