diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-18 17:54:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-18 17:54:04 +0000 |
commit | 1080f68b2b422f1e72e402765a45d0cc3c550825 (patch) | |
tree | bd66621cafaf19ba323210d4fe7242b5ea71d458 /target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch | |
parent | b86e82e5cc54f03f9207411197e15f431d2173ff (diff) | |
download | mtk-20170518-1080f68b2b422f1e72e402765a45d0cc3c550825.zip mtk-20170518-1080f68b2b422f1e72e402765a45d0cc3c550825.tar.gz mtk-20170518-1080f68b2b422f1e72e402765a45d0cc3c550825.tar.bz2 |
etrax: R.I.P.
It is broken and it is not maintained by anyone since long time.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34768
Diffstat (limited to 'target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch')
-rw-r--r-- | target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch b/target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch deleted file mode 100644 index 9c2e37a..0000000 --- a/target/linux/etrax/patches-2.6.32/620-create-the-i2c-devices.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/arch/cris/arch-v10/drivers/i2c.c -+++ b/arch/cris/arch-v10/drivers/i2c.c -@@ -21,6 +21,7 @@ - #include <linux/fs.h> - #include <linux/string.h> - #include <linux/init.h> -+#include <linux/device.h> - - #include <asm/etraxi2c.h> - -@@ -678,6 +679,8 @@ i2c_init(void) - return res; - } - -+static struct class *i2c_class; -+ - static int __init - i2c_register(void) - { -@@ -693,7 +696,11 @@ i2c_register(void) - } - - printk(KERN_INFO "I2C driver v2.2, (c) 1999-2004 Axis Communications AB\n"); -- -+ -+ i2c_class = class_create(THIS_MODULE, "i2c_etrax"); -+ device_create(i2c_class, NULL, -+ MKDEV(I2C_MAJOR, 0), NULL, "i2c"); -+ - return 0; - } - |