lkml.org 
[lkml]   [2015]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference
From
Date
Le 16/11/2015 19:33, Brian Norris a écrit :
> On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote:
>> I really wonder there is no helper
>> function like:
>>
>> #define of_sensible_name(dev) of_match_device(dev->driver->of_match_table, dev)
>
> How about of_device_get_match_data()?
>
> It's not exactly what you asked for, but it gets what you need here.
>
> Brian
>

I have got the same comment from another thread.
I will use it. Thanks

Regards



\
 
 \ /
  Last update: 2015-11-16 20:41    [W:1.247 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site