lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 5/5] bus: hisi_lpc: Use platform_device_register_full()
From
On 02/09/2022 10:21, Andy Shevchenko wrote:
>> Reviewed-by: Andy Shevchenko<andy.shevchenko@gmail.com>
> Too fast to give a tag, see below (keep tag if addressing it)

thanks

>
> ...
>
>>> - pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO);
>>> + pdev = platform_device_register_full(cell->pdevinfo);
>>> if (!pdev)
>>> return -ENOMEM;
> As per kernel doc:
> * Returns &struct platform_device pointer on success, or ERR_PTR() on error.

ah, right, I thought that I got that correct....

John

\
 
 \ /
  Last update: 2022-09-02 11:38    [W:0.046 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site