[Top] [All Lists]

MIPS: fix rc32434 pci build error

To: Ralf Baechle <>
Subject: MIPS: fix rc32434 pci build error
From: Yoichi Yuasa <>
Date: Wed, 27 Jul 2011 12:19:01 +0900
Cc: linux-mips <>,,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=sender:date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=t93P9qlFU/1QO6XdcV+AZFhSydDB5JhEN3c+qDoO0pU=; b=GjwGscypYZCqCOq3w+HXi452VzzDYmIK2r4b13HI87i+Y7uvTPpTH+am/M3DWaY8VU 2necuT2hMAFiX6Mz96jMNmDoA9Bif+la/+lOw/0HKEoOAlM4orOzihdSwtP7NFAgy7V8 J4l9B4WZirnNPqQJ+i3duiXG+xqIuiIUMFvQE=
arch/mips/pci/pci-rc32434.c: In function 'rc32434_pci_init':
arch/mips/pci/pci-rc32434.c:217:16: error: 'rcrc32434_res_pci_io1' undeclared 
(first use in this function)
arch/mips/pci/pci-rc32434.c:217:16: note: each undeclared identifier is 
reported only once for each function it appears in
make[1]: *** [arch/mips/pci/pci-rc32434.o] Error 1

This problem is included in the following commit.

  commit 28f65c11f2ffb3957259dece647a24f8ad2e241b
  Author: Joe Perches <>
  Date:   Thu Jun 9 09:13:32 2011 -0700

      treewide: Convert uses of struct resource to resource_size(ptr)

Signed-off-by: Yoichi Yuasa <>
 arch/mips/pci/pci-rc32434.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/pci/pci-rc32434.c b/arch/mips/pci/pci-rc32434.c
index 764362c..5f3a69c 100644
--- a/arch/mips/pci/pci-rc32434.c
+++ b/arch/mips/pci/pci-rc32434.c
@@ -215,7 +215,7 @@ static int __init rc32434_pci_init(void)
        io_map_base = ioremap(rc32434_res_pci_io1.start,
-                             resource_size(&rcrc32434_res_pci_io1));
+                             resource_size(&rc32434_res_pci_io1));
        if (!io_map_base)
                return -ENOMEM;

<Prev in Thread] Current Thread [Next in Thread>