Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644Ab3J2HgH (ORCPT ); Tue, 29 Oct 2013 03:36:07 -0400 Received: from ns1.pc-advies.be ([83.149.101.17]:39288 "EHLO spo001.leaseweb.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752151Ab3J2HgF (ORCPT ); Tue, 29 Oct 2013 03:36:05 -0400 Date: Tue, 29 Oct 2013 08:36:03 +0100 From: Wim Van Sebroeck To: Niels de Vos Cc: devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: Re: [PATCH] imx2_wdt: expose module alias for loading from device-tree Message-ID: <20131029073603.GB19569@spo001.leaseweb.com> References: <1375083498-14822-1-git-send-email-ndevos@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1375083498-14822-1-git-send-email-ndevos@redhat.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1030 Lines: 33 Hi Niels, > Enable auto loading by udev when imx2_wdt is compiled as a module. > > Signed-off-by: Niels de Vos > Cc: Shawn Guo > --- > drivers/watchdog/imx2_wdt.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c > index 693ac3f..17680aa 100644 > --- a/drivers/watchdog/imx2_wdt.c > +++ b/drivers/watchdog/imx2_wdt.c > @@ -322,6 +322,7 @@ static const struct of_device_id imx2_wdt_dt_ids[] = { > { .compatible = "fsl,imx21-wdt", }, > { /* sentinel */ } > }; > +MODULE_DEVICE_TABLE(of, imx2_wdt_dt_ids); > > static struct platform_driver imx2_wdt_driver = { > .remove = __exit_p(imx2_wdt_remove), This has been added to linux-watchdog-next. Kind regards, Wim. -- 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/