]> git.sur5r.net Git - u-boot/commitdiff
arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset
authorTien Fong Chee <tien.fong.chee@intel.com>
Wed, 26 Jul 2017 05:05:37 +0000 (13:05 +0800)
committerMarek Vasut <marex@denx.de>
Wed, 26 Jul 2017 08:31:43 +0000 (10:31 +0200)
Remove parameter from socfpga_bridges_reset(), and keeping this function
for single purpose which is just triggering reset on bridges.
socfpga_reset_deassert_bridges_handoff() can be called for releasing reset
on any bridges based on the bridge setting defined in fdt.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/mach-socfpga/include/mach/reset_manager_arria10.h
arch/arm/mach-socfpga/reset_manager_arria10.c

index 7922db815ce94afec05051221904cb25cdc59f2b..b6d7f4f6f96c31710504fa3640adb2f754bd7948 100644 (file)
@@ -17,7 +17,7 @@ int socfpga_reset_deassert_bridges_handoff(void);
 void socfpga_reset_assert_fpga_connected_peripherals(void);
 void socfpga_reset_deassert_osc1wd0(void);
 void socfpga_reset_uart(int assert);
-int socfpga_bridges_reset(int enable);
+int socfpga_bridges_reset(void);
 
 struct socfpga_reset_manager {
        u32     stat;
index d8c858c833bdf6717be768073125e18121e8c89c..66f1ec21f132eee1f5d9c57fdb1bd916e0af3830 100644 (file)
@@ -318,13 +318,13 @@ void socfpga_per_reset_all(void)
 }
 
 #if defined(CONFIG_SOCFPGA_VIRTUAL_TARGET)
-int socfpga_bridges_reset(int enable)
+int socfpga_bridges_reset(void)
 {
        /* For SoCFPGA-VT, this is NOP. */
        return 0;
 }
 #else
-int socfpga_bridges_reset(int enable)
+int socfpga_bridges_reset(void)
 {
        int ret;