watchdog: sp805: Use devm_clk_get_optional()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 17:44:56 +0000 (20:44 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 21 Jun 2021 06:49:01 +0000 (08:49 +0200)
commit05f0a994cd27bac4f49c9c4f961922f91a582295
tree17690cf118e2e3df27c6bc09edd5b6aa02e3b67f
parent742b80c56135971e35e6753c7400d7d6ee842a90
watchdog: sp805: Use devm_clk_get_optional()

Replace open coded variants of devm_clk_get_optional().

While at it, drop unneeded OF and ACPI dependency as the APIs in use
are provider agnostic.

Cc: Srinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Srinath Mannam <srinath.mannam@broadcom.com>
Link: https://lore.kernel.org/r/20210517174456.22050-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sp805_wdt.c