led: max77650: add of_match table
[linux-2.6-microblaze.git] / drivers / leds / leds-max77650.c
index 4c2d0b3..a0d4b72 100644 (file)
@@ -135,9 +135,16 @@ err_node_put:
        return rv;
 }
 
+static const struct of_device_id max77650_led_of_match[] = {
+       { .compatible = "maxim,max77650-led" },
+       { }
+};
+MODULE_DEVICE_TABLE(of, max77650_led_of_match);
+
 static struct platform_driver max77650_led_driver = {
        .driver = {
                .name = "max77650-led",
+               .of_match_table = max77650_led_of_match,
        },
        .probe = max77650_led_probe,
 };