From patchwork Wed Apr 25 04:12:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 8103 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 40BE023E13 for ; Wed, 25 Apr 2012 04:22:12 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id EA1CDA1860D for ; Wed, 25 Apr 2012 04:22:11 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2775712iag.11 for ; Tue, 24 Apr 2012 21:22:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=uGYa4u+5wujgzAvkcNxFGZ/fLD6+T3ZNtb5DmQWHlwo=; b=HfGG9ljUJS0ZI6RBThGxNu9Bkug84HgMEO38Jpw4l3zaiLtEh+cjsqvki/bUZ2ICxC ilspQJV7IWqUDngbuH7HS5HRooLYhRXV+r2PUpjYer68EmJQG9EBvSSYxGMR8FlknjQS I0DQjPr5tgcYYzfUFgT/Qw9h+6PqgAniPabtiaHQ7PC7lB58nBw7lkNP92Ob8iumSC+C 9r+bLskGO1Bxbd4eZSJBpkwtWnLLa4DxaFFuK2lf9udnWDZpsNMP6nZYwYflWrabGweQ eRyXxiUty2YluY+p5HV9P0O3oJAtlBx+J52WN/j6ExWZZ1cnD6bsCM9LJ5zXkFqDXGSX xzeg== Received: by 10.50.135.36 with SMTP id pp4mr751936igb.19.1335327731726; Tue, 24 Apr 2012 21:22:11 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.137.198 with SMTP id x6csp231154ibt; Tue, 24 Apr 2012 21:22:11 -0700 (PDT) Received: by 10.68.225.104 with SMTP id rj8mr4011685pbc.135.1335327731092; Tue, 24 Apr 2012 21:22:11 -0700 (PDT) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id of4si22406508pbb.262.2012.04.24.21.22.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pz0-f44.google.com with SMTP id z14so5396129dad.17 for ; Tue, 24 Apr 2012 21:22:10 -0700 (PDT) Received: by 10.68.136.137 with SMTP id qa9mr4129799pbb.78.1335327730811; Tue, 24 Apr 2012 21:22:10 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pv9sm9954480pbc.37.2012.04.24.21.22.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 21:22:10 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, patches@linaro.org Subject: [PATCH 05/33] ARM: EXYNOS: mach-smdkv310: Use common macro to define resources Date: Wed, 25 Apr 2012 09:42:15 +0530 Message-Id: <1335327163-11794-6-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1335327163-11794-1-git-send-email-tushar.behera@linaro.org> References: <1335327163-11794-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQnQYAMDrGqzPDVYMXoN8B6nNsS54Pdac5wnUe7OeWyE6SFRgam8ccDUAAcujDhwJQKofvhO CC: Kukjin Kim Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/mach-smdkv310.c | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index f7b6e12..4f18e82 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c @@ -179,16 +179,9 @@ static struct s3c_fb_platdata smdkv310_lcd0_pdata __initdata = { }; static struct resource smdkv310_smsc911x_resources[] = { - [0] = { - .start = EXYNOS4_PA_SROM_BANK(1), - .end = EXYNOS4_PA_SROM_BANK(1) + SZ_64K - 1, - .flags = IORESOURCE_MEM, - }, - [1] = { - .start = IRQ_EINT(5), - .end = IRQ_EINT(5), - .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, - }, + [0] = DEFINE_RES_MEM(EXYNOS4_PA_SROM_BANK(1), SZ_64K), + [1] = DEFINE_RES_NAMED(IRQ_EINT(5), 1, NULL, IORESOURCE_IRQ \ + | IRQF_TRIGGER_LOW), }; static struct smsc911x_platform_config smsc9215_config = {