From: Luis de Bethencourt Date: Fri, 18 Sep 2015 15:55:27 +0000 (+0200) Subject: net: gianfar_ptp: Fix module autoload for OF platform driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23860063706f2037008fb423820cdbd0dcd558bb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Richard Cochran Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c index 8e3cd77aa347..664d0c261269 100644 --- a/drivers/net/ethernet/freescale/gianfar_ptp.c +++ b/drivers/net/ethernet/freescale/gianfar_ptp.c @@ -557,6 +557,7 @@ static const struct of_device_id match_table[] = { { .compatible = "fsl,etsec-ptp" }, {}, }; +MODULE_DEVICE_TABLE(of, match_table); static struct platform_driver gianfar_ptp_driver = { .driver = {