All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: at91: resurrect mach-at91/include/mach/io.h
@ 2012-03-30 22:46 manabian at gmail.com
  2012-03-31  3:57 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: manabian at gmail.com @ 2012-03-30 22:46 UTC (permalink / raw)
  To: linux-arm-kernel

From: Joachim Eastwood <joachim.eastwood@jotron.com>

Commmit 4d5fc58dbe34b78 "ARM: remove bunch of now unused mach/io.h files"
removed the at91 io.h header. This makes pata_pcmcia when used with at91_cf
fail on ioport_map in pcmcia_init_one.

Adding io.h and NEED_MACH_IO_H makes my CF card work again.

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
---

If there is better/correct way to solve the problem please disregard this
patch.

 arch/arm/mach-at91/Kconfig           |    1 +
 arch/arm/mach-at91/include/mach/io.h |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 arch/arm/mach-at91/include/mach/io.h

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 6631d35..8bcf917 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -37,6 +37,7 @@ config ARCH_AT91RM9200
 	select GENERIC_CLOCKEVENTS
 	select HAVE_AT91_DBGU0
 	select HAVE_AT91_USART3
+	select NEED_MACH_IO_H
 
 config ARCH_AT91SAM9260
 	bool "AT91SAM9260 or AT91SAM9XE"
diff --git a/arch/arm/mach-at91/include/mach/io.h b/arch/arm/mach-at91/include/mach/io.h
new file mode 100644
index 0000000..ba9a22f
--- /dev/null
+++ b/arch/arm/mach-at91/include/mach/io.h
@@ -0,0 +1,32 @@
+/*
+ * arch/arm/mach-at91/include/mach/io.h
+ *
+ *  Copyright (C) 2003 SAN People
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __ASM_ARCH_IO_H
+#define __ASM_ARCH_IO_H
+
+#include <mach/hardware.h>
+
+#define IO_SPACE_LIMIT		0xFFFFFFFF
+
+#define __io(a)			__typesafe_io(a)
+#define __mem_pci(a)		(a)
+
+#endif
+
-- 
1.7.9.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-31  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 22:46 [PATCH] ARM: at91: resurrect mach-at91/include/mach/io.h manabian at gmail.com
2012-03-31  3:57 ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.