[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151116183333.GL8456@google.com>
Date: Mon, 16 Nov 2015 10:33:33 -0800
From: Brian Norris <computersforpeace@...il.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: LABBE Corentin <clabbe.montjoie@...il.com>, baruch@...s.co.il,
dwmw2@...radead.org, fransklaver@...il.com,
k.kozlowski.k@...il.com, luis@...ethencourt.com,
s.hauer@...gutronix.de, linux-kernel@...r.kernel.org,
linux-mtd@...ts.infradead.org
Subject: Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference
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
--
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