pwm: atmel-hlcdc: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 18 Sep 2015 16:58:21 +0000 (18:58 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Sep 2015 08:04:40 +0000 (10:04 +0200)
commita83a6a82250fe900be85c8e142f5cb504d9482bd
treecd147a1e77a56f2df274b3dfd1aeb88490d75d09
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
pwm: atmel-hlcdc: 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.

This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that
information so modules have the correct aliases built-in and autoloading
works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-hlcdc.c