Re: [PATCH 3/5] MIPS: remove powertv mips_machine_halt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 18, 2009 at 09:33:46PM +0900, Yoichi Yuasa wrote:
> mips_machine_halt() is same as mips_machine_restart().
> In addition, the registration of _machine_halt and pm_power_off are deleted.
> because mips_machine_halt() is restart function.
> 
> Signed-off-by: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>
> ---
>  arch/mips/powertv/reset.c |   18 ------------------
>  1 files changed, 0 insertions(+), 18 deletions(-)
> 
> diff --git a/arch/mips/powertv/reset.c b/arch/mips/powertv/reset.c
> index 494c652..0007652 100644
> --- a/arch/mips/powertv/reset.c
> +++ b/arch/mips/powertv/reset.c
> @@ -28,9 +28,6 @@
>  #include <asm/mach-powertv/asic_regs.h>
>  #include "reset.h"
>  
> -static void mips_machine_restart(char *command);
> -static void mips_machine_halt(void);
> -
>  static void mips_machine_restart(char *command)
>  {
>  #ifdef CONFIG_BOOTLOADER_DRIVER
> @@ -44,22 +41,7 @@ static void mips_machine_restart(char *command)
>  #endif
>  }
>  
> -static void mips_machine_halt(void)
> -{
> -#ifdef CONFIG_BOOTLOADER_DRIVER
> -	/*
> -	 * Call the bootloader's reset function to ensure
> -	 * that persistent data is flushed before hard reset
> -	 */
> -	kbldr_SetCauseAndReset();
> -#else
> -	writel(0x1, asic_reg_addr(watchdog));
> -#endif
> -}
> -
>  void mips_reboot_setup(void)
>  {
>  	_machine_restart = mips_machine_restart;
> -	_machine_halt = mips_machine_halt;
> -	pm_power_off = mips_machine_halt;
>  }
> -- 
> 1.6.5.7
> 
> 

oks good, thanks!
Reviewed-by: David VomLehn (dvomlehn@xxxxxxxxx)



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux