
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- linux/arch/arm/common/locomo.c~locomo_devices
+++ linux/arch/arm/common/locomo.c
@@ -51,6 +51,43 @@
 };
 
 static struct locomo_dev_info locomo_devices[] = {
+	{
+		.offset		= 0,
+		.length		= 0,
+		.devid 		= LOCOMO_DEVID_KEYBOARD,
+		.irq = {
+			IRQ_LOCOMO_KEY,
+		},
+		.name		= "locomo-keyb",
+	},
+	{
+		.offset		= 0,
+		.length		= 0,
+		.devid		= LOCOMO_DEVID_LED,
+		.irq 		= {},
+		.name		= "locomo-led",
+	},
+	{
+		.offset		= 0,
+		.length		= 0,
+		.devid		= LOCOMO_DEVID_UART,
+		.irq		= {},
+		.name		= "locomo-uart",
+	},
+	{
+		.offset		= 0,
+		.length		= 0,
+		.devid		= LOCOMO_DEVID_LCD,
+		.irq		= {},
+		.name		= "locomo-lcd",
+	},
+	{
+		.offset		= 0,
+		.length		= 0,
+		.devid		= LOCOMO_DEVID_SPI,
+		.irq		= {},
+		.name		= "locomo-spi",
+	},
 };
 
 
--- linux/include/asm-arm/hardware/locomo.h~locomo_devices
+++ linux/include/asm-arm/hardware/locomo.h
@@ -169,6 +169,12 @@
 
 extern struct bus_type locomo_bus_type;
 
+#define LOCOMO_DEVID_KEYBOARD	0
+#define LOCOMO_DEVID_LED	1
+#define LOCOMO_DEVID_UART	2
+#define LOCOMO_DEVID_LCD	3
+#define LOCOMO_DEVID_SPI	4
+
 struct locomo_dev {
 	struct device	dev;
 	unsigned int	devid;

