[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkda5nYmAT3-fkxdYQEGpi6U=L-kphQEu3naoxPzO9a-7pQ@mail.gmail.com>
Date: Mon, 18 Jun 2012 13:52:06 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: "devendra.aaru" <devendra.aaru@...il.com>
Cc: Stephen Warren <swarren@...dotorg.org>,
linux-kernel@...r.kernel.org
Subject: Re: Q: return of pinctrl_register and handing at drivers that use
this function
On Mon, Jun 18, 2012 at 1:47 PM, devendra.aaru <devendra.aaru@...il.com> wrote:
> since the pinctrl_register returns a pointer of structure type "struct
> pinctrl_dev" or NULL if it was failed to register the pinctrl driver,
> so IS_ERR checking is not required?
Yes. (Unless I did something wrong.)
> My understanding about IS_ERR is that its used when the pointer
> addresses are kind of error codes rather actual addresses,
> but are a kind of return codes of functions returning integer types.
You are absolutely right.
Yours,
Linus Walleij
--
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