Hello,
On 2016-07-06 15:09, Krzysztof Kozlowski wrote:
On 07/06/2016 02:15 PM, weiyj...@163.com wrote:
From: Wei Yongjun
In case of error, the function of_platform_device_create() returns
NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
check
Hi,
> just a question,
>
>>> pdev = of_platform_device_create(np, NULL, platform_bus_type.dev_root);
>>> - if (IS_ERR(pdev))
>>> - return PTR_ERR(pdev);
>>> + if (!pdev)
>>> + return -ENOMEM;
>>>
>>> /*
>>> * use the first registered sysmmu device for
Hi,
just a question,
> > pdev = of_platform_device_create(np, NULL, platform_bus_type.dev_root);
> > - if (IS_ERR(pdev))
> > - return PTR_ERR(pdev);
> > + if (!pdev)
> > + return -ENOMEM;
> >
> > /*
> > * use the first registered sysmmu device for
On 07/06/2016 02:15 PM, weiyj...@163.com wrote:
> From: Wei Yongjun
>
> In case of error, the function of_platform_device_create() returns
> NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL test.
>
>
On Wed, Jul 06, 2016 at 12:15:54PM +, weiyj...@163.com wrote:
> From: Wei Yongjun
>
> In case of error, the function of_platform_device_create() returns
> NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL
From: Wei Yongjun
In case of error, the function of_platform_device_create() returns
NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.
Signed-off-by: Wei Yongjun
---