From patchwork Wed Apr 19 17:00:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9688251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 12A8A602DC for ; Wed, 19 Apr 2017 17:02:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0118E2842B for ; Wed, 19 Apr 2017 17:02:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7FDE28433; Wed, 19 Apr 2017 17:02:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB3772842B for ; Wed, 19 Apr 2017 17:02:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967533AbdDSRCA (ORCPT ); Wed, 19 Apr 2017 13:02:00 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:50964 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966698AbdDSRB2 (ORCPT ); Wed, 19 Apr 2017 13:01:28 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MUxAq-1cXHHu2tmG-00YDrm; Wed, 19 Apr 2017 19:00:30 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, Arnd Bergmann , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Daniel Vetter , Tobias Jakobi , Hans Verkuil , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] exynos_hdmi: improve MEDIA_CEC_NOTIFIER dependency Date: Wed, 19 Apr 2017 19:00:19 +0200 Message-Id: <20170419170030.2869578-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:HFCRn0Mr4dA86SXJOWDtl3q6u/ZiAiWhoO2V3B0cxJJfl5JqbcV UsF5l9gS5VfVT4tEFH0JG3wdeiJQjE8XZ4B1y2MwWcvZRIJiYuoMDph0mr4G9oVP/jLOGuT CjZ0Z0hJWstNVHqSZduqWCNo+2pBMfhEDAkyfeZzg7CrDnyN4j1TBSH0JZhSqf5FM2VUxqC T6y2LR1LKyis1dwf1DT0A== X-UI-Out-Filterresults: notjunk:1; V01:K0:uuIaT0dtK7o=:WyZ2PZHwP8fvJNrPRhcBwF hopu2QRW4XkPD5ZKCaf/aFDghm96pFH/FihwvPL+4A2H0O9kOvX583HthyEK625paHdOC4jzk D5uyc/ollXzccrnW1yNkR+4eAAYKqeiF/wcejFUCFeff6fn893bocflL49HEhQLZM/IrFbMXi 6ZGaBI/BmYCIZJW+HK4xv12biQcDEHSZNbeP6HxuZb0yk4GTnd+VTgqm1LhTAdFuSXcT7On/b U3ha08ksYDVu4CTXqpHDvbJaCcaAFZ8rJGPyvKjx0HdKJozP6C1ZCWQ+PbHREFWoNqnjo96zP Ibk0kk8EU+Zp90mvWgRVyVynrZj7y2jovUr4qDBRsBIfoAwI/VzsMS0JGf0T1+3CYuKNJPxQq jE0MmncIZmiNT96L0tIGa/PJ7Jx7+TaC3ZvUcJazCLhrLzqKLvi/dWq8IGaqrwydnRKMu4YKU 8NNCeDnxBMUvRJ5Z5OqwVSq/CRwMQNypjsTDEyfScX0FjeRZqEjLPNACeWBzxTpQwQ7hkJJDU 2ZrvuyO5Mzutvs75KbjdVsm2Mp29TLrGUW9Ma4+88mmHxquVuMpOwWMwrMRtlbWQYkiNkIatZ 9ViB7qMWYpsMUvVW8Z7Mv8ta4wGHF27lRYvzNgB1aOYrPPkc+vjR65WPbHxI15wzXp1mq2FIg yLgG7bqCNspdjwSHtzMbC2sFtRtFAQ0ZfJQNqtXquZrGLBber5HHooBYdKygZv/Uu2tc= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When the media subsystem is built as a loadable module, a built-in DRM driver cannot use the cec notifiers: drivers/gpu/drm/exynos/exynos_hdmi.o: In function `hdmi_get_modes': exynos_hdmi.c:(.text.hdmi_get_modes+0x80): undefined reference to `cec_notifier_set_phys_addr_from_edid' drivers/gpu/drm/exynos/exynos_hdmi.o: In function `hdmi_remove': exynos_hdmi.c:(.text.hdmi_remove+0x24): undefined reference to `cec_notifier_set_phys_addr' exynos_hdmi.c:(.text.hdmi_remove+0x38): undefined reference to `cec_notifier_put' This adds a Kconfig dependency to enforce the HDMI driver to also be a loadable module in this case. Fixes: 278c811c5d05 ("[media] exynos_hdmi: add CEC notifier support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/exynos/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/exynos/Kconfig b/drivers/gpu/drm/exynos/Kconfig index 1d185347c64c..65ba292f8e40 100644 --- a/drivers/gpu/drm/exynos/Kconfig +++ b/drivers/gpu/drm/exynos/Kconfig @@ -1,6 +1,7 @@ config DRM_EXYNOS tristate "DRM Support for Samsung SoC EXYNOS Series" depends on OF && DRM && (ARCH_S3C64XX || ARCH_EXYNOS || ARCH_MULTIPLATFORM) + depends on (MEDIA_SUPPORT && MEDIA_CEC_NOTIFIER) || !MEDIA_CEC_NOTIFIER select DRM_KMS_HELPER select VIDEOMODE_HELPERS help