From 641ec9db23c6cc369e6d265d7e174f2f4825a57d Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 19 Jul 2015 19:45:43 +0200 Subject: [PATCH] ar71xx/sysmocom: register boot counter for all board the bootcounter was only registered for ap2 --- target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c index b290157..8fbfbee 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -158,6 +158,7 @@ static struct i2c_board_info sob_ap_i2c_devs[] __initdata = { static void __init sysmocom_common_setup(void) { ath79_register_m25p80(&size_depend_flash_data); + platform_device_register(&sob_boot_counter); } static void __init sysmocom_sob_ap1_setup(void) @@ -223,7 +224,6 @@ static void __init sysmocom_sob_ap2_setup(void) ath79_reset_rr(AR933X_RESET_REG_BOOTSTRAP) | AR933X_BOOTSTRAP_MDIO_GPIO_EN); - platform_device_register(&sob_boot_counter); platform_device_register(&sob_ap2_i2c_gpio_device); i2c_register_board_info(0, sob_ap_i2c_devs, ARRAY_SIZE(sob_ap_i2c_devs));