pwm: samsung: Use MODULE_DEVICE_TABLE() to include OF modalias
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Thu, 14 May 2015 00:32:31 +0000 (02:32 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 21 May 2015 13:56:53 +0000 (15:56 +0200)
If the pwm-samsung driver is built as a module, modalias information is
not filled so the module is not autoloaded. Use the MODULE_DEVICE_TABLE()
macro to export the OF device ID so the module contains that information.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-samsung.c

index ff201e1b92197e1d354cacc3239a045b7b88e77c..ada2d326dc3e6117f9543f5283ac09c90bcb22ad 100644 (file)
@@ -456,6 +456,7 @@ static const struct of_device_id samsung_pwm_matches[] = {
        { .compatible = "samsung,exynos4210-pwm", .data = &s5p64x0_variant },
        {},
 };
+MODULE_DEVICE_TABLE(of, samsung_pwm_matches);
 
 static int pwm_samsung_parse_dt(struct samsung_pwm_chip *chip)
 {
This page took 0.027692 seconds and 5 git commands to generate.