From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752138AbbJCK3u (ORCPT ); Sat, 3 Oct 2015 06:29:50 -0400 Received: from mail.skyhub.de ([78.46.96.112]:49885 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbbJCK3s (ORCPT ); Sat, 3 Oct 2015 06:29:48 -0400 Date: Sat, 3 Oct 2015 12:29:46 +0200 From: Borislav Petkov To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, Doug Thompson , Mauro Carvalho Chehab , linux-edac@vger.kernel.org Subject: Re: [PATCH] ppc4xx_edac: Fix module autoload for OF platform driver Message-ID: <20151003102945.GB3786@pd.tnic> References: <20150917114619.GA13145@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150917114619.GA13145@goodgumbo.baconseed.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2015 at 01:46:19PM +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 > --- > drivers/edac/ppc4xx_edac.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c > index 711d8ad..d3a64ba 100644 > --- a/drivers/edac/ppc4xx_edac.c > +++ b/drivers/edac/ppc4xx_edac.c > @@ -199,6 +199,7 @@ static const struct of_device_id ppc4xx_edac_match[] = { > }, > { } > }; > +MODULE_DEVICE_TABLE(of, ppc4xx_edac_match); > > static struct platform_driver ppc4xx_edac_driver = { > .probe = ppc4xx_edac_probe, > -- Applied, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.