Re: [PATCH] watchdog: da9062: remove unused code

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

 



On Fri, May 18, 2018 at 05:01:30PM +0200, Michael Grzeschik wrote:
> The patch "watchdog: da9062: use protection delay mechanism from core"
> (fb484262) removed the only user of j_time_stamp. This turned into some
> leftover functions that are removed with this patch.
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx>

Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>

> ---
>  drivers/watchdog/da9062_wdt.c | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/drivers/watchdog/da9062_wdt.c b/drivers/watchdog/da9062_wdt.c
> index a001782bbfdb1..fe169d8e1fb2f 100644
> --- a/drivers/watchdog/da9062_wdt.c
> +++ b/drivers/watchdog/da9062_wdt.c
> @@ -30,14 +30,8 @@ static const unsigned int wdt_timeout[] = { 0, 2, 4, 8, 16, 32, 65, 131 };
>  struct da9062_watchdog {
>  	struct da9062 *hw;
>  	struct watchdog_device wdtdev;
> -	unsigned long j_time_stamp;
>  };
>  
> -static void da9062_set_window_start(struct da9062_watchdog *wdt)
> -{
> -	wdt->j_time_stamp = jiffies;
> -}
> -
>  static unsigned int da9062_wdt_timeout_to_sel(unsigned int secs)
>  {
>  	unsigned int i;
> @@ -59,8 +53,6 @@ static int da9062_reset_watchdog_timer(struct da9062_watchdog *wdt)
>  			   DA9062AA_WATCHDOG_MASK,
>  			   DA9062AA_WATCHDOG_MASK);
>  
> -	da9062_set_window_start(wdt);
> -
>  	return ret;
>  }
>  
> @@ -232,8 +224,6 @@ static int da9062_wdt_probe(struct platform_device *pdev)
>  		return ret;
>  	}
>  
> -	da9062_set_window_start(wdt);
> -
>  	return da9062_wdt_ping(&wdt->wdtdev);
>  }
>  
> -- 
> 2.17.0
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux