From: Luis de Bethencourt Date: Tue, 1 Sep 2015 21:35:38 +0000 (+0200) Subject: leds: bcm6328: Fix module autoload for OF platform driver X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6528ca19c1c8d4756b534a1ce9df4c3849f9dd04;p=openwrt%2Fstaging%2Fblogic.git leds: bcm6328: 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 Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index 986fe1e28f84..1793727bc9ae 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -395,6 +395,7 @@ static const struct of_device_id bcm6328_leds_of_match[] = { { .compatible = "brcm,bcm6328-leds", }, { }, }; +MODULE_DEVICE_TABLE(of, bcm6328_leds_of_match); static struct platform_driver bcm6328_leds_driver = { .probe = bcm6328_leds_probe,