usb: Use of_property_read_bool() for boolean properties
[linux-2.6-block.git] / drivers / usb / chipidea / ci_hdrc_imx.c
index 2eeccf4ec9d60e50800fb8fe435d9cc1cecb35ba..2855ac30300147aa69b32294fb24e2d6e95f8c4a 100644 (file)
@@ -152,12 +152,12 @@ static struct imx_usbmisc_data *usbmisc_get_init_data(struct device *dev)
         * Check the various over current related properties. If over current
         * detection is disabled we're not interested in the polarity.
         */
-       if (of_find_property(np, "disable-over-current", NULL)) {
+       if (of_property_read_bool(np, "disable-over-current")) {
                data->disable_oc = 1;
-       } else if (of_find_property(np, "over-current-active-high", NULL)) {
+       } else if (of_property_read_bool(np, "over-current-active-high")) {
                data->oc_pol_active_low = 0;
                data->oc_pol_configured = 1;
-       } else if (of_find_property(np, "over-current-active-low", NULL)) {
+       } else if (of_property_read_bool(np, "over-current-active-low")) {
                data->oc_pol_active_low = 1;
                data->oc_pol_configured = 1;
        } else {