Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ath79: Remove ar933x_uart_platform.h header

In commit 15ef17f622033455dcf03ae96256e474073a7b11
(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: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5832/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Gabor Juhos and committed by
Ralf Baechle
1a9db0a9 c6e7274e

-24
-6
arch/mips/ath79/dev-common.c
··· 20 20 21 21 #include <asm/mach-ath79/ath79.h> 22 22 #include <asm/mach-ath79/ar71xx_regs.h> 23 - #include <asm/mach-ath79/ar933x_uart_platform.h> 24 23 #include "common.h" 25 24 #include "dev-common.h" 26 25 ··· 67 68 }, 68 69 }; 69 70 70 - static struct ar933x_uart_platform_data ar933x_uart_data; 71 71 static struct platform_device ar933x_uart_device = { 72 72 .name = "ar933x-uart", 73 73 .id = -1, 74 74 .resource = ar933x_uart_resources, 75 75 .num_resources = ARRAY_SIZE(ar933x_uart_resources), 76 - .dev = { 77 - .platform_data = &ar933x_uart_data, 78 - }, 79 76 }; 80 77 81 78 void __init ath79_register_uart(void) ··· 88 93 ath79_uart_data[0].uartclk = uart_clk_rate; 89 94 platform_device_register(&ath79_uart_device); 90 95 } else if (soc_is_ar933x()) { 91 - ar933x_uart_data.uartclk = uart_clk_rate; 92 96 platform_device_register(&ar933x_uart_device); 93 97 } else { 94 98 BUG();
-18
arch/mips/include/asm/mach-ath79/ar933x_uart_platform.h
··· 1 - /* 2 - * Platform data definition for Atheros AR933X UART 3 - * 4 - * Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org> 5 - * 6 - * This program is free software; you can redistribute it and/or modify it 7 - * under the terms of the GNU General Public License version 2 as published 8 - * by the Free Software Foundation. 9 - */ 10 - 11 - #ifndef _AR933X_UART_PLATFORM_H 12 - #define _AR933X_UART_PLATFORM_H 13 - 14 - struct ar933x_uart_platform_data { 15 - unsigned uartclk; 16 - }; 17 - 18 - #endif /* _AR933X_UART_PLATFORM_H */