MIPS: SEAD3: Nuke remaining I2C bits.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 29 Mar 2015 20:09:02 +0000 (22:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:22:08 +0000 (17:22 +0200)
With no I2C driver available, keeping the platform device registration
makes no sense just as keeping the code to instantiage the I2C devices.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-sead3/Makefile
arch/mips/mti-sead3/sead3-i2c-dev.c [deleted file]
arch/mips/mti-sead3/sead3-i2c.c [deleted file]

index 2ae49e99eb6797b9e1466bd8487c763c7c19d837..46d83b3626358c299d10491f4fb17a6019204048 100644 (file)
@@ -13,8 +13,7 @@ obj-y                         := sead3-lcd.o sead3-display.o sead3-init.o \
                                   sead3-platform.o sead3-reset.o \
                                   sead3-setup.o sead3-time.o
 
-obj-y                          += sead3-i2c-dev.o sead3-i2c.o \
-                                  leds-sead3.o sead3-leds.o
+obj-y                          += leds-sead3.o sead3-leds.o
 
 obj-$(CONFIG_EARLY_PRINTK)     += sead3-console.o
 obj-$(CONFIG_USB_EHCI_HCD)     += sead3-ehci.o
diff --git a/arch/mips/mti-sead3/sead3-i2c-dev.c b/arch/mips/mti-sead3/sead3-i2c-dev.c
deleted file mode 100644 (file)
index eca0b53..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2012 MIPS Technologies, Inc.  All rights reserved.
- */
-#include <linux/init.h>
-#include <linux/i2c.h>
-
-static struct i2c_board_info __initdata sead3_i2c_devices[] = {
-       {
-               I2C_BOARD_INFO("adt7476", 0x2c),
-               .irq = 0,
-       },
-       {
-               I2C_BOARD_INFO("m41t80", 0x68),
-               .irq = 0,
-       },
-};
-
-static int __init sead3_i2c_init(void)
-{
-       int err;
-
-       err = i2c_register_board_info(0, sead3_i2c_devices,
-                                       ARRAY_SIZE(sead3_i2c_devices));
-       if (err < 0)
-               pr_err("sead3-i2c-dev: cannot register board I2C devices\n");
-       return err;
-}
-
-arch_initcall(sead3_i2c_init);
diff --git a/arch/mips/mti-sead3/sead3-i2c.c b/arch/mips/mti-sead3/sead3-i2c.c
deleted file mode 100644 (file)
index 795ae83..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2012 MIPS Technologies, Inc.  All rights reserved.
- */
-#include <linux/init.h>
-#include <linux/platform_device.h>
-
-struct resource sead3_i2c_resources[] = {
-       {
-               .start  = 0x805200,
-               .end    = 0x8053ff,
-               .flags  = IORESOURCE_MEM,
-       },
-};
-
-static struct platform_device sead3_i2c_device = {
-       .name           = "sead3-i2c",
-       .id             = 0,
-       .num_resources  = ARRAY_SIZE(sead3_i2c_resources),
-       .resource       = sead3_i2c_resources,
-};
-
-static int __init sead3_i2c_init(void)
-{
-       return platform_device_register(&sead3_i2c_device);
-}
-
-device_initcall(sead3_i2c_init);