From patchwork Tue Oct 8 10:39:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Majunath Goudar X-Patchwork-Id: 3002651 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45746BF924 for ; Tue, 8 Oct 2013 10:40:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C7DB2014A for ; Tue, 8 Oct 2013 10:40:03 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53BB120150 for ; Tue, 8 Oct 2013 10:40:02 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTUhr-0007TX-Ck; Tue, 08 Oct 2013 10:39:59 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTUho-0002V9-4R; Tue, 08 Oct 2013 10:39:56 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTUhl-0002U2-6k for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2013 10:39:53 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz1so8654036pad.2 for ; Tue, 08 Oct 2013 03:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=aNnansvABq1FsG3JozsMklA+/bXjQrgPYy9ZYvDF6os=; b=N3GyElSKVhXSDWTxD1va1HXU+xI6aHQ0djvOUaD5O2MOw+uHVXmqL62DXLUXAJKivW hbAusNI1Cx1SwMrsjzdHCZokCtN1JanDBViplqpovs4VxVwtjp5RYh7by7ubGjazFAvW bImxcnYiySn5yF8cP7HxSkmR7/JuzmzANKs2G7VTVX2/vO0ejjHQqg3DeK3/OJOiCuN9 N/456gT0dwcb2J4a4VtgFnJj7honn6YaqLDrjMA15LEMkhBs3T+vLFhmm0rx6cn3eGZ6 k3s9TEs5w4sfF85MrZSB0Z4RTuisLHbSXMzOBuCwwhnkFVvAXKPOke1wD5O0+J68SZFz LgsQ== X-Received: by 10.66.140.40 with SMTP id rd8mr2679021pab.119.1381228771772; Tue, 08 Oct 2013 03:39:31 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id va8sm39186430pbc.16.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 03:39:30 -0700 (PDT) From: Majunath Goudar To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] SHMOBILE: DRM: Fix backlight_device register and unregister undefined errors. Date: Tue, 8 Oct 2013 16:09:17 +0530 Message-Id: <1381228757-23144-1-git-send-email-csmanjuvijay@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131008_063953_344947_7A7F2193 X-CRM114-Status: GOOD ( 13.07 ) X-Spam-Score: 0.1 (/) Cc: Laurent Pinchart , David Airlie , Sascha Hauer , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Majunath Goudar , nataraja.km@lge.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a BACKLIGHT_CLASS_DEVICE dependency to configure the DRM_SHMOBILE. Without this patch, build system can lead to build failure. This was observed during randconfig testing, in which DRM_SHMOBILE was enabled w/o BACKLIGHT_CLASS_DEVICE being enabled. Following was the error: Building modules, stage 2. MODPOST 516 modules ERROR: "backlight_device_register" [drivers/gpu/drm/shmobile/shmob-drm.ko] undefined! ERROR: "backlight_device_unregister" [drivers/gpu/drm/shmobile/shmob-drm.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Signed-off-by: Manjunath Goudar Cc: David Airlie Cc: Laurent Pinchart Cc: Sascha Hauer Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org --- drivers/gpu/drm/shmobile/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/shmobile/Kconfig b/drivers/gpu/drm/shmobile/Kconfig index ca498d1..eaf822e 100644 --- a/drivers/gpu/drm/shmobile/Kconfig +++ b/drivers/gpu/drm/shmobile/Kconfig @@ -1,6 +1,6 @@ config DRM_SHMOBILE tristate "DRM Support for SH Mobile" - depends on DRM && (ARM || SUPERH) + depends on DRM && (ARM || SUPERH) && BACKLIGHT_CLASS_DEVICE select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER select DRM_GEM_CMA_HELPER