From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754309AbbICLNR (ORCPT ); Thu, 3 Sep 2015 07:13:17 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35024 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284AbbICLNQ (ORCPT ); Thu, 3 Sep 2015 07:13:16 -0400 Date: Thu, 3 Sep 2015 13:13:14 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Devendra Naga , Aya Mahfouz , Antonio Borneo , devel@driverdev.osuosl.org, Javier Martinez Canillas Subject: [PATCH 1/2] staging: mt29f_spinand: Fix module autoload for OF platform driver Message-ID: <20150903111314.GA17824@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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/staging/mt29f_spinand/mt29f_spinand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c index ad30ce4..1aa449e 100644 --- a/drivers/staging/mt29f_spinand/mt29f_spinand.c +++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c @@ -941,6 +941,7 @@ static const struct of_device_id spinand_dt[] = { { .compatible = "spinand,mt29f", }, {} }; +MODULE_DEVICE_TABLE(of, spinand_dt); /* * Device name structure description -- 2.4.6