Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[linux-2.6-microblaze.git] / drivers / hwmon / adt7475.c
index 6e4c92b..6a6ebcc 100644 (file)
@@ -1604,9 +1604,9 @@ static int adt7475_set_pwm_polarity(struct i2c_client *client)
        int ret, i;
        u8 val;
 
-       ret = of_property_read_u32_array(client->dev.of_node,
-                                        "adi,pwm-active-state", states,
-                                        ARRAY_SIZE(states));
+       ret = device_property_read_u32_array(&client->dev,
+                                            "adi,pwm-active-state", states,
+                                            ARRAY_SIZE(states));
        if (ret)
                return ret;