[POWERPC] powermac: Constify & voidify get_property()
[deliverable/linux.git] / arch / powerpc / platforms / powermac / backlight.c
index 69f65e215a5c8baa9fe7895542f1c84b9cf83780..205b4a392862209fc435df846250af96e5a0b5e0 100644 (file)
@@ -38,7 +38,8 @@ int pmac_has_backlight_type(const char *type)
        struct device_node* bk_node = find_devices("backlight");
 
        if (bk_node) {
-               char *prop = get_property(bk_node, "backlight-control", NULL);
+               const char *prop = get_property(bk_node,
+                               "backlight-control", NULL);
                if (prop && strncmp(prop, type, strlen(type)) == 0)
                        return 1;
        }
This page took 0.025195 seconds and 5 git commands to generate.