From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbbDPAVi (ORCPT ); Wed, 15 Apr 2015 20:21:38 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:36786 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbbDPAVa (ORCPT ); Wed, 15 Apr 2015 20:21:30 -0400 From: Arun Bharadwaj To: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jingoo Han , Lee Jones , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Ash Charles Subject: [PATCH] gpio-backlight: Discover driver during boot time Date: Wed, 15 Apr 2015 17:21:24 -0700 Message-Id: <1429143684-3371-1-git-send-email-arun@gumstix.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The gpio-backlight driver seems to be missing the MODULE_DEVICE_TABLE line which is preventing it from being modprobed during boot time even if the gpio-backlight device exists. This seems to be a bug and this patch attempts to fix that. Signed-off-by: Arun Bharadwaj Signed-off-by: Ash Charles --- drivers/video/backlight/gpio_backlight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 439feb2..5fbbc2e 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -146,6 +146,8 @@ static struct of_device_id gpio_backlight_of_match[] = { { .compatible = "gpio-backlight" }, { /* sentinel */ } }; + +MODULE_DEVICE_TABLE(of, gpio_backlight_of_match); #endif static struct platform_driver gpio_backlight_driver = { -- 1.9.1