From patchwork Tue Jun 18 06:29:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2738941 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FCB39F472 for ; Tue, 18 Jun 2013 06:29:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B26D20257 for ; Tue, 18 Jun 2013 06:29:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8AA52015C for ; Tue, 18 Jun 2013 06:29:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553Ab3FRG35 (ORCPT ); Tue, 18 Jun 2013 02:29:57 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:46078 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201Ab3FRG34 (ORCPT ); Tue, 18 Jun 2013 02:29:56 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr13so3569006pbb.34 for ; Mon, 17 Jun 2013 23:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=o9F1cgFwwt/sSDIdpEbg/aVfc/7JSDakdstjEfox+ys=; b=ho1AnXKysyDDzrVWXxIC7pbHofgGcRz78GyozR/0EULsxyqWXsS5OdMh81DGrwwlY+ 7tDhfTnEJl75/hf8tqShDsBBNwzTvqZH4IvVwEn9bV1oemlpHLUllXivAs4GF8FyE9RF cXO2+kkV/rhrQXqRxpG5UfYYLW2wAh3cC12RdE98MZk6vWY1XHFsJl1QNWjr+VGjeAL0 zj2jLvgGv56fnT64I6zDvJ9jc6mYy0EOy6Nbvc7xYQvF9kZRAH9dTBwEGYUQDgisO04n aVVKnT6oBZUbM5Jt8oL1TwhCwsMHpEA2zWjH8jBNFR1ol2+qvE7i8L2fFCMbX9Kbmd7L gZNQ== X-Received: by 10.68.167.99 with SMTP id zn3mr16098687pbb.216.1371536996056; Mon, 17 Jun 2013 23:29:56 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ep3sm7967227pbd.27.2013.06.17.23.29.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 23:29:55 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, kgene.kim@samsung.com, t.figa@samsung.com, s.nawrocki@samsung.com, mark.rutland@arm.com, thomas.ab@samsung.com, Chander Kashyap Subject: [PATCH v4 04/10] serial: samsung: select Exynos specific driver data if ARCH_EXYNOS is defined Date: Tue, 18 Jun 2013 11:59:16 +0530 Message-Id: <1371536962-13322-5-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371536962-13322-1-git-send-email-chander.kashyap@linaro.org> References: <1371536962-13322-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQmhEc6vBOF89+a7k7jFkejydWMkuiImiks+u1T5poUYzHbsDDzCGxeIFd2DzO0t7tHYurqo Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 All Exynos4/5 SoCs share a common driver data in the samsung serial driver. Hence, let the driver data inclusion be based on ARCH_EXYNOS instead of SOC specific definition. Signed-off-by: Chander Kashyap Reviewed-by: Tomasz Figa --- drivers/tty/serial/samsung.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 2552c7f..e70d19a 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1703,9 +1703,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { #define S5PV210_SERIAL_DRV_DATA (kernel_ulong_t)NULL #endif -#if defined(CONFIG_CPU_EXYNOS4210) || defined(CONFIG_SOC_EXYNOS4212) || \ - defined(CONFIG_SOC_EXYNOS4412) || defined(CONFIG_SOC_EXYNOS5250) || \ - defined(CONFIG_SOC_EXYNOS5440) +#if defined(CONFIG_ARCH_EXYNOS) static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { .info = &(struct s3c24xx_uart_info) { .name = "Samsung Exynos4 UART",