From 7e7649baa9de9d592a76e150970e3079d7610138 Mon Sep 17 00:00:00 2001 From: kaloz Date: Tue, 1 May 2012 07:00:17 +0000 Subject: [coldfire]: switch to 2.6.38 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31546 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...8-Fix-i2c-driver-could-not-work-as-module.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 target/linux/coldfire/patches/103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch (limited to 'target/linux/coldfire/patches/103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch') diff --git a/target/linux/coldfire/patches/103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch b/target/linux/coldfire/patches/103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch new file mode 100644 index 000000000..8a10ad880 --- /dev/null +++ b/target/linux/coldfire/patches/103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch @@ -0,0 +1,30 @@ +From 358154a6d0dd87305c6af92810220f8a17641c07 Mon Sep 17 00:00:00 2001 +From: Wang Huan +Date: Mon, 8 Aug 2011 10:49:53 +0800 +Subject: [PATCH] Fix i2c driver could not work as module + +Signed-off-by: Alison Wang +--- + arch/m68k/coldfire/m5445x/devices.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +--- a/arch/m68k/coldfire/m5445x/devices.c ++++ b/arch/m68k/coldfire/m5445x/devices.c +@@ -426,7 +426,7 @@ static inline void mcf5445x_init_pata(vo + /* + * I2C + */ +-#if defined(CONFIG_I2C) ++#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) + static struct resource coldfire_i2c_resources[] = { + { /* I/O */ + .start = 0xFC058000, +@@ -464,7 +464,7 @@ static int __init mcf5445x_init_devices( + mcf5445x_init_pata(); + #endif + +-#if defined(CONFIG_I2C) ++#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) + mcf5445x_init_i2c(); + #endif + return 0; -- cgit v1.2.3