GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / mips / mti-sead3 / sead3-i2c.c
blobbf5f8d30f4edd2863f786a9906d54f5671bd2bd3
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2007 MIPS Technologies, Inc.
7 * written by Ralf Baechle (ralf@linux-mips.org)
9 * Probe driver for the SEAD3 network device
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <irq.h>
18 struct resource i2c_resources[] = {
20 .start = 0x805200,
21 .end = 0x8053FF,
22 .flags = IORESOURCE_MEM
26 static struct platform_device i2c_device = {
27 .name = "i2c_pic32",
28 .id = 2,
29 .num_resources = ARRAY_SIZE(i2c_resources),
30 .resource = i2c_resources
33 static int __init i2c_init(void)
35 return platform_device_register(&i2c_device);
38 module_init(i2c_init);
40 MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
41 MODULE_LICENSE("GPL");
42 MODULE_DESCRIPTION("I2C probe driver for SEAD3");