Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753325AbbKPSdi (ORCPT ); Mon, 16 Nov 2015 13:33:38 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35143 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbbKPSdg (ORCPT ); Mon, 16 Nov 2015 13:33:36 -0500 Date: Mon, 16 Nov 2015 10:33:33 -0800 From: Brian Norris To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: LABBE Corentin , 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 Subject: Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference Message-ID: <20151116183333.GL8456@google.com> References: <1447314423-31225-1-git-send-email-clabbe.montjoie@gmail.com> <20151112081909.GD24008@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151112081909.GD24008@pengutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 567 Lines: 16 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/