From patchwork Wed Apr 23 17:28:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 28922 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD518203AC for ; Wed, 23 Apr 2014 17:29:05 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf5148675yho.2 for ; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=pY1Y5A5tazMbNltNyPsVwJS+z8nHQQDh7XHMb66ukck=; b=G6zewa9r36FDaJCuDHfYy8Pn50rIUVzJ38AFKWD1769oMpF3AUw4a3Z8oFMKpScgjM +DkOTlow/uUnVNOh0kG+jFriRMVMRqnXZMkqN8grOkS6O7TEGCqi3o3vRHXcJzjZ+mPj CFRFAZyWw0h89xGZ5AMdCeMGGdUHjmKcE4ccNfL0cVv/95f5l1e7rnP36vAvQ2Hv3csD K/QeyReUV/Cgc4iywgMBaJk4MiL301e82cI2bHs+fmAeNvpspxNvfbTFueKv9FBb35jZ Ce6u3+crxHTCPkXMowcS2/zOeARVgzylbvtGV5pNuYS7aYqct2wT+iNV+EY/XZ0sPikf +ESg== X-Gm-Message-State: ALoCoQnDGUU6bW3EU3wB/KcuyQufWOUkeE5zVUflIBYVa+lkBf5p9mYhXkewhSW/kmRVgLojbK2U X-Received: by 10.52.28.116 with SMTP id a20mr21116160vdh.2.1398274145450; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.229 with SMTP id j92ls726775qgf.89.gmail; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) X-Received: by 10.52.18.68 with SMTP id u4mr651617vdd.58.1398274145340; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sj10si304688vcb.123.2014.04.23.10.29.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 10:29:05 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so1492918veb.21 for ; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) X-Received: by 10.58.179.115 with SMTP id df19mr777146vec.41.1398274145273; Wed, 23 Apr 2014 10:29:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp120709vcb; Wed, 23 Apr 2014 10:29:04 -0700 (PDT) X-Received: by 10.194.77.148 with SMTP id s20mr7392475wjw.31.1398274143538; Wed, 23 Apr 2014 10:29:03 -0700 (PDT) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by mx.google.com with ESMTPS id o4si2817997wix.19.2014.04.23.10.29.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 10:29:03 -0700 (PDT) Received-SPF: none (google.com: peter.griffin@linaro.org does not designate permitted sender hosts) client-ip=74.125.82.169; Received: by mail-we0-f169.google.com with SMTP id w62so1185659wes.0 for ; Wed, 23 Apr 2014 10:29:03 -0700 (PDT) X-Received: by 10.194.92.7 with SMTP id ci7mr40123524wjb.7.1398274142971; Wed, 23 Apr 2014 10:29:02 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by mx.google.com with ESMTPSA id go20sm2372382wjc.18.2014.04.23.10.29.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 10:29:02 -0700 (PDT) From: Peter Griffin To: peter.griffin@linaro.org Cc: patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 09/13] video: exynos: allow S6E8AX0 to be a module Date: Wed, 23 Apr 2014 18:28:43 +0100 Message-Id: <1398274127-2106-9-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398274127-2106-1-git-send-email-peter.griffin@linaro.org> References: <1398274127-2106-1-git-send-email-peter.griffin@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Arnd Bergmann This driver depends on LCD_CLASS_DEVICE, which can be a loadable module, but S6E8AX0 can only be built-in at the moment, which can lead to link errors when the class device code is not built-in. Changing this to allow the driver as a module also requires exporting the exynos_mipi_dsi_register_lcd_driver symbol. Signed-off-by: Arnd Bergmann Signed-off-by: Peter Griffin Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: Kukjin Kim Cc: linux-fbdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org --- drivers/video/fbdev/exynos/Kconfig | 4 ++-- drivers/video/fbdev/exynos/exynos_mipi_dsi.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig index fcf2d48..bf776dd 100644 --- a/drivers/video/fbdev/exynos/Kconfig +++ b/drivers/video/fbdev/exynos/Kconfig @@ -21,9 +21,9 @@ config EXYNOS_MIPI_DSI This enables support for MIPI-DSI device. config EXYNOS_LCD_S6E8AX0 - bool "S6E8AX0 MIPI AMOLED LCD Driver" + tristate "S6E8AX0 MIPI AMOLED LCD Driver" depends on EXYNOS_MIPI_DSI && BACKLIGHT_CLASS_DEVICE - depends on (LCD_CLASS_DEVICE = y) + depends on LCD_CLASS_DEVICE default n help If you have an S6E8AX0 MIPI AMOLED LCD Panel, say Y to enable its diff --git a/drivers/video/fbdev/exynos/exynos_mipi_dsi.c b/drivers/video/fbdev/exynos/exynos_mipi_dsi.c index cee9602..cf1390e 100644 --- a/drivers/video/fbdev/exynos/exynos_mipi_dsi.c +++ b/drivers/video/fbdev/exynos/exynos_mipi_dsi.c @@ -263,6 +263,7 @@ int exynos_mipi_dsi_register_lcd_driver(struct mipi_dsim_lcd_driver *lcd_drv) return 0; } +EXPORT_SYMBOL_GPL(exynos_mipi_dsi_register_lcd_driver); static struct mipi_dsim_ddi *exynos_mipi_dsi_bind_lcd_ddi( struct mipi_dsim_device *dsim,