From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753406AbbIAVgp (ORCPT ); Tue, 1 Sep 2015 17:36:45 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:35129 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbbIAVgn (ORCPT ); Tue, 1 Sep 2015 17:36:43 -0400 Date: Tue, 1 Sep 2015 23:36:41 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Richard Purdie , Jacek Anaszewski , linux-leds@vger.kernel.org, Javier Martinez Canillas Subject: [PATCH 5/6] leds: max77693: Fix module autoload for OF platform driver Message-ID: <20150901213641.GA14396@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/leds/leds-max77693.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/leds-max77693.c b/drivers/leds/leds-max77693.c index df348a0..afbb140 100644 --- a/drivers/leds/leds-max77693.c +++ b/drivers/leds/leds-max77693.c @@ -1080,6 +1080,7 @@ static const struct of_device_id max77693_led_dt_match[] = { { .compatible = "maxim,max77693-led" }, {}, }; +MODULE_DEVICE_TABLE(of, max77693_led_dt_match); static struct platform_driver max77693_led_driver = { .probe = max77693_led_probe, -- 2.4.6