]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/fixed.c
regulator: fixed: Use of_match_ptr() for of_match_table entry
[karo-tx-linux.git] / drivers / regulator / fixed.c
index f09fe7b20e82282e9f68957c1c7b56cad426544e..8bda3654ae512e3b83eac024f204039a09b9d4d5 100644 (file)
@@ -296,8 +296,6 @@ static const struct of_device_id fixed_of_match[] __devinitconst = {
        {},
 };
 MODULE_DEVICE_TABLE(of, fixed_of_match);
-#else
-#define fixed_of_match NULL
 #endif
 
 static struct platform_driver regulator_fixed_voltage_driver = {
@@ -306,7 +304,7 @@ static struct platform_driver regulator_fixed_voltage_driver = {
        .driver         = {
                .name           = "reg-fixed-voltage",
                .owner          = THIS_MODULE,
-               .of_match_table = fixed_of_match,
+               .of_match_table = of_match_ptr(fixed_of_match),
        },
 };