regulator: wm8994: Enable device tree based driver matching
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 21 Feb 2013 14:54:19 +0000 (15:54 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:49 +0000 (11:42 +0900)
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/regulator/wm8994-regulator.c

index a612c35..dab41ae 100644 (file)
@@ -192,10 +192,17 @@ static int wm8994_ldo_remove(struct platform_device *pdev)
        return 0;
 }
 
+static const struct of_device_id wm8994_ldo_of_match[] = {
+       { .compatible = "wlf,wm8994-ldo" },
+       { },
+};
+MODULE_DEVICE_TABLE(of, wm8994_ldo_of_match);
+
 static struct platform_driver wm8994_ldo_driver = {
        .probe = wm8994_ldo_probe,
        .remove = wm8994_ldo_remove,
        .driver         = {
+               .of_match_table = wm8994_ldo_of_match,
                .name   = "wm8994-ldo",
                .owner  = THIS_MODULE,
        },