Commit 1a9db0a9 authored by Gabor Juhos's avatar Gabor Juhos Committed by Ralf Baechle

MIPS: ath79: Remove ar933x_uart_platform.h header

In commit 15ef17f6
(tty: ar933x_uart: use the clk API to get the uart
clock), the AR933x UART driver for has been converted
to get the uart clock rate via the clock API and it
does not use the platform data anymore.

Remove the ar933x_uart_platform.h header file and get
rid of the superfluous variable and initialization code
in platform setup.
Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5832/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c6e7274e
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <asm/mach-ath79/ath79.h> #include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/ar71xx_regs.h> #include <asm/mach-ath79/ar71xx_regs.h>
#include <asm/mach-ath79/ar933x_uart_platform.h>
#include "common.h" #include "common.h"
#include "dev-common.h" #include "dev-common.h"
...@@ -68,15 +67,11 @@ static struct resource ar933x_uart_resources[] = { ...@@ -68,15 +67,11 @@ static struct resource ar933x_uart_resources[] = {
}, },
}; };
static struct ar933x_uart_platform_data ar933x_uart_data;
static struct platform_device ar933x_uart_device = { static struct platform_device ar933x_uart_device = {
.name = "ar933x-uart", .name = "ar933x-uart",
.id = -1, .id = -1,
.resource = ar933x_uart_resources, .resource = ar933x_uart_resources,
.num_resources = ARRAY_SIZE(ar933x_uart_resources), .num_resources = ARRAY_SIZE(ar933x_uart_resources),
.dev = {
.platform_data = &ar933x_uart_data,
},
}; };
void __init ath79_register_uart(void) void __init ath79_register_uart(void)
...@@ -93,7 +88,6 @@ void __init ath79_register_uart(void) ...@@ -93,7 +88,6 @@ void __init ath79_register_uart(void)
ath79_uart_data[0].uartclk = uart_clk_rate; ath79_uart_data[0].uartclk = uart_clk_rate;
platform_device_register(&ath79_uart_device); platform_device_register(&ath79_uart_device);
} else if (soc_is_ar933x()) { } else if (soc_is_ar933x()) {
ar933x_uart_data.uartclk = uart_clk_rate;
platform_device_register(&ar933x_uart_device); platform_device_register(&ar933x_uart_device);
} else { } else {
BUG(); BUG();
......
/*
* Platform data definition for Atheros AR933X UART
*
* Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef _AR933X_UART_PLATFORM_H
#define _AR933X_UART_PLATFORM_H
struct ar933x_uart_platform_data {
unsigned uartclk;
};
#endif /* _AR933X_UART_PLATFORM_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment