Re: [PATCH] dm9000: Add regulator and reset support to dm9000

From: Zubair Lutfullah Kakakhel
Date: Tue Dec 16 2014 - 11:41:49 EST




On 16/12/14 16:33, Zubair Lutfullah Kakakhel wrote:
...

> +
> + power = devm_regulator_get(dev, "vcc");
> + if (IS_ERR(power)) {
> + dev_dbg(dev, "no regulator provided\n");
> + } else if (!regulator_is_enabled(power)) {
> + ret = regulator_enable(power);
> + dev_dgb(dev, "regulator enabled\n");
^dev_dbg

Apologies. This fix wasn't squashed in. I'll resend.

> + }
> +
> + reset_gpio = of_get_named_gpio_flags(dev->of_node, "reset-gpio", 0,
> + &flags);

ZubairLK
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/