Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753371AbbKPTMT (ORCPT ); Mon, 16 Nov 2015 14:12:19 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38377 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbbKPTMS (ORCPT ); Mon, 16 Nov 2015 14:12:18 -0500 Subject: Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference To: Brian Norris , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= References: <1447314423-31225-1-git-send-email-clabbe.montjoie@gmail.com> <20151112081909.GD24008@pengutronix.de> <20151116183333.GL8456@google.com> Cc: baruch@tkos.co.il, dwmw2@infradead.org, fransklaver@gmail.com, k.kozlowski.k@gmail.com, luis@debethencourt.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org From: Corentin LABBE Message-ID: <564A2A8E.30506@gmail.com> Date: Mon, 16 Nov 2015 20:12:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151116183333.GL8456@google.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 24 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/