summaryrefslogtreecommitdiff
path: root/arch/mips/jz4740/platform.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2016-10-31 23:39:51 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-11-05 02:02:02 +0300
commitd839c60ac55681494d7f96c0c278eccc3eac3918 (patch)
tree4c9fa6630ec32c94f531b31dad5cb5605e155183 /arch/mips/jz4740/platform.c
parent6ab59018370345b0909af7c1f24553b2608c5fbc (diff)
downloadlinux-d839c60ac55681494d7f96c0c278eccc3eac3918.tar.xz
MIPS: jz4740: Remove obsolete code
This commit removes two things: - The platform_device that corresponds to the RTC driver, since we now probe this driver from devicetree; - The platform power-off code, since all the jz4740-based platforms are now using the jz4740-rtc driver as the system power controller. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Acked-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'arch/mips/jz4740/platform.c')
-rw-r--r--arch/mips/jz4740/platform.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/mips/jz4740/platform.c b/arch/mips/jz4740/platform.c
index 2f1dab35c061..5b7cdd67a9d9 100644
--- a/arch/mips/jz4740/platform.c
+++ b/arch/mips/jz4740/platform.c
@@ -88,27 +88,6 @@ struct platform_device jz4740_mmc_device = {
.resource = jz4740_mmc_resources,
};
-/* RTC controller */
-static struct resource jz4740_rtc_resources[] = {
- {
- .start = JZ4740_RTC_BASE_ADDR,
- .end = JZ4740_RTC_BASE_ADDR + 0x38 - 1,
- .flags = IORESOURCE_MEM,
- },
- {
- .start = JZ4740_IRQ_RTC,
- .end = JZ4740_IRQ_RTC,
- .flags = IORESOURCE_IRQ,
- },
-};
-
-struct platform_device jz4740_rtc_device = {
- .name = "jz4740-rtc",
- .id = -1,
- .num_resources = ARRAY_SIZE(jz4740_rtc_resources),
- .resource = jz4740_rtc_resources,
-};
-
/* I2C controller */
static struct resource jz4740_i2c_resources[] = {
{