From patchwork Mon Mar 18 21:31:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2296081 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 43A383FCF6 for ; Mon, 18 Mar 2013 21:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932960Ab3CRVck (ORCPT ); Mon, 18 Mar 2013 17:32:40 -0400 Received: from mail-ea0-f178.google.com ([209.85.215.178]:46970 "EHLO mail-ea0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755733Ab3CRVcM (ORCPT ); Mon, 18 Mar 2013 17:32:12 -0400 Received: by mail-ea0-f178.google.com with SMTP id g14so2823827eak.9 for ; Mon, 18 Mar 2013 14:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=51aaJFaj2CM7itOgZwnPWtwUNWbgppXlvgEp45TwdJ0=; b=pf6RX4+tqJmgsWGiyVhbueWxHLt7RMWszaHMGI7lKhICgDiDyPUrESJ6hLAoCaNUYo qfCeVIy/4QKBhT+SRi2WUzl4HpVGN973eyVU2JpaeO4hTZlEgMu665EnBdf+ncXjBCDJ kejBQz/OJpqL10U02gvqRg6Cce9Sm6WFa0cjUlliGXwr55AjqUfyfgJ8h0YND90WB4sp /X0dr6DrE+/n7qpHkzdX/3oW/VgDDbXuNIXW1JUgfR+LMxWCuea3+tCR0dyQJhElW0Ou qmgby7m3Is8Q61ao20ljaKFdl8l+7uLqUNKQYJ6/dDPWTxOT0EF7AO7ds8+ecL9/4m62 kI8A== X-Received: by 10.14.219.7 with SMTP id l7mr53383212eep.12.1363642331139; Mon, 18 Mar 2013 14:32:11 -0700 (PDT) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPS id f47sm29540034eep.13.2013.03.18.14.32.09 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 14:32:10 -0700 (PDT) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, thomas.abraham@linaro.org, linus.walleij@linaro.org, Tomasz Figa Subject: [PATCH 2/6] pinctrl: samsung: Include pinctrl-exynos driver data conditionally Date: Mon, 18 Mar 2013 22:31:51 +0100 Message-Id: <1363642315-10331-3-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1363642315-10331-1-git-send-email-tomasz.figa@gmail.com> References: <1363642315-10331-1-git-send-email-tomasz.figa@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Since pinctrl-samsung is a common part of the pin control support for several Samsung SoCs, it can be compiled without Exynos support enabled. This patch surrounds Exynos-specific driver data with ifdefs to include them only when support for Exynos is enabled. Signed-off-by: Tomasz Figa --- drivers/pinctrl/pinctrl-samsung.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index b1d4ac8..f1fb562 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -968,10 +968,12 @@ static int samsung_pinctrl_probe(struct platform_device *pdev) } static const struct of_device_id samsung_pinctrl_dt_match[] = { +#ifdef CONFIG_PINCTRL_EXYNOS4 { .compatible = "samsung,exynos4210-pinctrl", .data = (void *)exynos4210_pin_ctrl }, { .compatible = "samsung,exynos4x12-pinctrl", .data = (void *)exynos4x12_pin_ctrl }, +#endif {}, }; MODULE_DEVICE_TABLE(of, samsung_pinctrl_dt_match);