[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51888D55.3090907@ti.com>
Date: Tue, 7 May 2013 10:42:53 +0530
From: Kishon Vijay Abraham I <kishon@...com>
To: Mark Brown <broonie@...nel.org>
CC: <myungjoo.ham@...sung.com>, <cw00.choi@...sung.com>,
<balbi@...com>, <ldewangan@...dia.com>,
<devicetree-discuss@...ts.ozlabs.org>, <linux-doc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <grant.likely@...aro.org>,
<rob.herring@...xeda.com>, <rob@...dley.net>, <gg@...mlogic.co.uk>,
<ruchika@...com>, <tony@...mide.com>, <sameo@...ux.intel.com>
Subject: Re: [PATCH v4] extcon: Palmas Extcon Driver
Hi,
On Monday 06 May 2013 08:10 PM, Mark Brown wrote:
> On Mon, May 06, 2013 at 06:47:04PM +0530, Kishon Vijay Abraham I wrote:
>
>> + if (palmas_usb->linkstat != PALMAS_USB_STATE_VBUS) {
>> + if (palmas_usb->vbus_reg) {
>> + ret = regulator_enable(palmas_usb->vbus_reg);
>> + if (ret) {
>> + dev_dbg(palmas_usb->dev,
>> + "regulator enable failed\n");
>> + goto ret0;
>
> This is very bad karma, why is the regulator optional?
The platform can provide it's own vbus control in which case this is not
needed.
Thanks
Kishon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists