[PATCH -next] tty: of_serial: fix return value check in of_platform_serial_setup()
Greg KH
gregkh at linuxfoundation.org
Fri Nov 16 12:22:32 EST 2012
On Thu, Nov 15, 2012 at 12:08:11PM +0000, Grant Likely wrote:
> On Thu, 1 Nov 2012 13:27:34 +0800, Wei Yongjun <weiyj.lk at gmail.com> wrote:
> > From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> >
> > In case of error, the function clk_get() returns ERR_PTR()
> > and never returns NULL. The NULL test in the return value
> > check should be replaced with IS_ERR().
> >
> > dpatch engine is used to auto generate this patch.
> > (https://github.com/weiyj/dpatch)
> >
> > Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
>
> Looks correct to me.
>
> Acked-by: Grant Likely <grant.likely at secretlab.ca>
>
> Alan, which tree should this go through?
My tty tree, I'll take it.
thanks,
greg k-h
More information about the devicetree-discuss
mailing list