From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752395AbbIQPiL (ORCPT ); Thu, 17 Sep 2015 11:38:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:36157 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbbIQPiH (ORCPT ); Thu, 17 Sep 2015 11:38:07 -0400 From: Johannes Thumshirn To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, Doug Thompson , Borislav Petkov , Mauro Carvalho Chehab , linux-edac@vger.kernel.org Subject: Re: [PATCH] ppc4xx_edac: Fix module autoload for OF platform driver References: <20150917114619.GA13145@goodgumbo.baconseed.org> Date: Thu, 17 Sep 2015 17:38:04 +0200 In-Reply-To: <20150917114619.GA13145@goodgumbo.baconseed.org> (Luis de Bethencourt's message of "Thu, 17 Sep 2015 13:46:19 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Luis de Bethencourt writes: > 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 Reviewed-by: Johannes Thumshirn > --- > 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,