Skip to content

Commit 2386006

Browse files
luisbgdavem330
authored andcommitted
net: gianfar_ptp: 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]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e8048e5 commit 2386006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/freescale/gianfar_ptp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ static const struct of_device_id match_table[] = {
557557
{ .compatible = "fsl,etsec-ptp" },
558558
{},
559559
};
560+
MODULE_DEVICE_TABLE(of, match_table);
560561

561562
static struct platform_driver gianfar_ptp_driver = {
562563
.driver = {

0 commit comments

Comments
 (0)