From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbbIRFyI (ORCPT ); Fri, 18 Sep 2015 01:54:08 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:44084 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbbIRFyG (ORCPT ); Fri, 18 Sep 2015 01:54:06 -0400 Date: Fri, 18 Sep 2015 07:54:01 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, David Woodhouse , Brian Norris , Sascha Hauer , Baruch Siach , "Koul, Vinod" , Krzysztof Kozlowski , linux-mtd@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH 4/5] mtd: mxc_nand: Fix module autoload for OF platform driver Message-ID: <20150918055401.GQ5327@pengutronix.de> References: <20150917221328.GA9291@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150917221328.GA9291@goodgumbo.baconseed.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2015 at 12:13:28AM +0200, Luis de Bethencourt wrote: > This platform driver has a OF device ID table but the OF module > alias information is not created so module autoloading won't work. > > Signed-off-by: Luis de Bethencourt Acked-by: Uwe Kleine-König > --- > drivers/mtd/nand/mxc_nand.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c > index 2426db8..ab281b6 100644 > --- a/drivers/mtd/nand/mxc_nand.c > +++ b/drivers/mtd/nand/mxc_nand.c > @@ -1458,6 +1458,7 @@ static const struct of_device_id mxcnd_dt_ids[] = { > }, > { /* sentinel */ } > }; > +MODULE_DEVICE_TABLE(of, mxcnd_dt_ids); > > static int __init mxcnd_probe_dt(struct mxc_nand_host *host) > { -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |