]> Pileus Git - ~andy/linux/blobdiff - drivers/macintosh/via-pmu-led.c
devres: release resources on device_del()
[~andy/linux] / drivers / macintosh / via-pmu-led.c
index 5189d5454b1f274c1f363eb5baaa9a255132bb98..179af10105d968fe9216cb03f41f33de0599ddca 100644 (file)
@@ -120,7 +120,7 @@ static int __init via_pmu_led_init(void)
        dt = of_find_node_by_path("/");
        if (dt == NULL)
                return -ENODEV;
-       model = (const char *)get_property(dt, "model", NULL);
+       model = get_property(dt, "model", NULL);
        if (model == NULL)
                return -ENODEV;
        if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 &&