kernel: allow EAP frames to pass through bridges even in learning state - fixes issue...
[openwrt.git] / target / linux / etrax / patches-2.6.32 / 620-create-the-i2c-devices.patch
1 --- a/arch/cris/arch-v10/drivers/i2c.c
2 +++ b/arch/cris/arch-v10/drivers/i2c.c
3 @@ -21,6 +21,7 @@
4 #include <linux/fs.h>
5 #include <linux/string.h>
6 #include <linux/init.h>
7 +#include <linux/device.h>
8
9 #include <asm/etraxi2c.h>
10
11 @@ -678,6 +679,8 @@ i2c_init(void)
12 return res;
13 }
14
15 +static struct class *i2c_class;
16 +
17 static int __init
18 i2c_register(void)
19 {
20 @@ -693,7 +696,11 @@ i2c_register(void)
21 }
22
23 printk(KERN_INFO "I2C driver v2.2, (c) 1999-2004 Axis Communications AB\n");
24 -
25 +
26 + i2c_class = class_create(THIS_MODULE, "i2c_etrax");
27 + device_create(i2c_class, NULL,
28 + MKDEV(I2C_MAJOR, 0), NULL, "i2c");
29 +
30 return 0;
31 }
32
This page took 0.048308 seconds and 5 git commands to generate.