* [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device()
@ 2023-03-06 17:08 Uwe Kleine-König
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Uwe Kleine-König @ 2023-03-06 17:08 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck
Cc: linux-watchdog, linux-kernel, patches, kernel
Hello,
this series converts three drivers to use
devm_watchdog_register_device(). This allows to drop their remove
callback.
Best regards
Uwe
Uwe Kleine-König (3):
watchdog: bcm47xx: Simplify using devm_watchdog_register_device()
watchdog: rn5t618: Simplify using devm_watchdog_register_device()
watchdog: wm8350: Simplify using devm_watchdog_register_device()
drivers/watchdog/bcm47xx_wdt.c | 12 +-----------
drivers/watchdog/rn5t618_wdt.c | 12 +-----------
drivers/watchdog/wm8350_wdt.c | 9 +--------
3 files changed, 3 insertions(+), 30 deletions(-)
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
--
2.39.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] watchdog: bcm47xx: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Uwe Kleine-König
@ 2023-03-06 17:08 ` Uwe Kleine-König
2023-03-06 17:30 ` Guenter Roeck
2023-03-06 20:17 ` Guenter Roeck
2023-03-06 17:09 ` [PATCH 2/3] watchdog: rn5t618: " Uwe Kleine-König
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Uwe Kleine-König @ 2023-03-06 17:08 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck; +Cc: linux-watchdog, linux-kernel, kernel
This allows to drop the .remove() function as it only exists to
unregister the watchdog device which is now done in a callback
registered by devm_watchdog_register_device().
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/watchdog/bcm47xx_wdt.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c
index 05425c1dfd4c..8698ef94dddf 100644
--- a/drivers/watchdog/bcm47xx_wdt.c
+++ b/drivers/watchdog/bcm47xx_wdt.c
@@ -202,7 +202,7 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
watchdog_set_restart_priority(&wdt->wdd, 64);
watchdog_stop_on_reboot(&wdt->wdd);
- ret = watchdog_register_device(&wdt->wdd);
+ ret = devm_watchdog_register_device(&wdt->wdd);
if (ret)
goto err_timer;
@@ -218,21 +218,11 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
return ret;
}
-static int bcm47xx_wdt_remove(struct platform_device *pdev)
-{
- struct bcm47xx_wdt *wdt = dev_get_platdata(&pdev->dev);
-
- watchdog_unregister_device(&wdt->wdd);
-
- return 0;
-}
-
static struct platform_driver bcm47xx_wdt_driver = {
.driver = {
.name = "bcm47xx-wdt",
},
.probe = bcm47xx_wdt_probe,
- .remove = bcm47xx_wdt_remove,
};
module_platform_driver(bcm47xx_wdt_driver);
--
2.39.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] watchdog: rn5t618: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Uwe Kleine-König
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
@ 2023-03-06 17:09 ` Uwe Kleine-König
2023-03-06 17:31 ` Guenter Roeck
2023-03-06 17:09 ` [PATCH 3/3] watchdog: wm8350: " Uwe Kleine-König
2023-03-06 18:21 ` [PATCH 0/3] watchdog: " Guenter Roeck
3 siblings, 1 reply; 10+ messages in thread
From: Uwe Kleine-König @ 2023-03-06 17:09 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck; +Cc: linux-watchdog, linux-kernel, kernel
This allows to drop the .remove() function as it only exists to
unregister the watchdog device which is now done in a callback
registered by devm_watchdog_register_device().
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/watchdog/rn5t618_wdt.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/watchdog/rn5t618_wdt.c b/drivers/watchdog/rn5t618_wdt.c
index 40d8ebd8c0ac..c0aee627ff3b 100644
--- a/drivers/watchdog/rn5t618_wdt.c
+++ b/drivers/watchdog/rn5t618_wdt.c
@@ -178,21 +178,11 @@ static int rn5t618_wdt_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, wdt);
- return watchdog_register_device(&wdt->wdt_dev);
-}
-
-static int rn5t618_wdt_remove(struct platform_device *pdev)
-{
- struct rn5t618_wdt *wdt = platform_get_drvdata(pdev);
-
- watchdog_unregister_device(&wdt->wdt_dev);
-
- return 0;
+ return devm_watchdog_register_device(&wdt->wdt_dev);
}
static struct platform_driver rn5t618_wdt_driver = {
.probe = rn5t618_wdt_probe,
- .remove = rn5t618_wdt_remove,
.driver = {
.name = DRIVER_NAME,
},
--
2.39.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] watchdog: wm8350: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Uwe Kleine-König
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
2023-03-06 17:09 ` [PATCH 2/3] watchdog: rn5t618: " Uwe Kleine-König
@ 2023-03-06 17:09 ` Uwe Kleine-König
2023-03-06 17:31 ` Guenter Roeck
2023-03-06 19:39 ` kernel test robot
2023-03-06 18:21 ` [PATCH 0/3] watchdog: " Guenter Roeck
3 siblings, 2 replies; 10+ messages in thread
From: Uwe Kleine-König @ 2023-03-06 17:09 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck
Cc: patches, linux-watchdog, linux-kernel, kernel
This allows to drop the .remove() function as it only exists to
unregister the watchdog device which is now done in a callback
registered by devm_watchdog_register_device().
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/watchdog/wm8350_wdt.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/watchdog/wm8350_wdt.c b/drivers/watchdog/wm8350_wdt.c
index 33c62d51f00a..911ad64460a6 100644
--- a/drivers/watchdog/wm8350_wdt.c
+++ b/drivers/watchdog/wm8350_wdt.c
@@ -153,18 +153,11 @@ static int wm8350_wdt_probe(struct platform_device *pdev)
/* Default to 4s timeout */
wm8350_wdt_set_timeout(&wm8350_wdt, 4);
- return watchdog_register_device(&wm8350_wdt);
-}
-
-static int wm8350_wdt_remove(struct platform_device *pdev)
-{
- watchdog_unregister_device(&wm8350_wdt);
- return 0;
+ return devm_watchdog_register_device(&wm8350_wdt);
}
static struct platform_driver wm8350_wdt_driver = {
.probe = wm8350_wdt_probe,
- .remove = wm8350_wdt_remove,
.driver = {
.name = "wm8350-wdt",
},
--
2.39.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] watchdog: bcm47xx: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
@ 2023-03-06 17:30 ` Guenter Roeck
2023-03-06 20:17 ` Guenter Roeck
1 sibling, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2023-03-06 17:30 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Wim Van Sebroeck, linux-watchdog, linux-kernel, kernel
On Mon, Mar 06, 2023 at 06:08:59PM +0100, Uwe Kleine-König wrote:
> This allows to drop the .remove() function as it only exists to
> unregister the watchdog device which is now done in a callback
> registered by devm_watchdog_register_device().
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/bcm47xx_wdt.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c
> index 05425c1dfd4c..8698ef94dddf 100644
> --- a/drivers/watchdog/bcm47xx_wdt.c
> +++ b/drivers/watchdog/bcm47xx_wdt.c
> @@ -202,7 +202,7 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
> watchdog_set_restart_priority(&wdt->wdd, 64);
> watchdog_stop_on_reboot(&wdt->wdd);
>
> - ret = watchdog_register_device(&wdt->wdd);
> + ret = devm_watchdog_register_device(&wdt->wdd);
> if (ret)
> goto err_timer;
>
> @@ -218,21 +218,11 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int bcm47xx_wdt_remove(struct platform_device *pdev)
> -{
> - struct bcm47xx_wdt *wdt = dev_get_platdata(&pdev->dev);
> -
> - watchdog_unregister_device(&wdt->wdd);
> -
> - return 0;
> -}
> -
> static struct platform_driver bcm47xx_wdt_driver = {
> .driver = {
> .name = "bcm47xx-wdt",
> },
> .probe = bcm47xx_wdt_probe,
> - .remove = bcm47xx_wdt_remove,
> };
>
> module_platform_driver(bcm47xx_wdt_driver);
> --
> 2.39.1
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/3] watchdog: rn5t618: Simplify using devm_watchdog_register_device()
2023-03-06 17:09 ` [PATCH 2/3] watchdog: rn5t618: " Uwe Kleine-König
@ 2023-03-06 17:31 ` Guenter Roeck
0 siblings, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2023-03-06 17:31 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Wim Van Sebroeck, linux-watchdog, linux-kernel, kernel
On Mon, Mar 06, 2023 at 06:09:00PM +0100, Uwe Kleine-König wrote:
> This allows to drop the .remove() function as it only exists to
> unregister the watchdog device which is now done in a callback
> registered by devm_watchdog_register_device().
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/rn5t618_wdt.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/drivers/watchdog/rn5t618_wdt.c b/drivers/watchdog/rn5t618_wdt.c
> index 40d8ebd8c0ac..c0aee627ff3b 100644
> --- a/drivers/watchdog/rn5t618_wdt.c
> +++ b/drivers/watchdog/rn5t618_wdt.c
> @@ -178,21 +178,11 @@ static int rn5t618_wdt_probe(struct platform_device *pdev)
>
> platform_set_drvdata(pdev, wdt);
>
> - return watchdog_register_device(&wdt->wdt_dev);
> -}
> -
> -static int rn5t618_wdt_remove(struct platform_device *pdev)
> -{
> - struct rn5t618_wdt *wdt = platform_get_drvdata(pdev);
> -
> - watchdog_unregister_device(&wdt->wdt_dev);
> -
> - return 0;
> + return devm_watchdog_register_device(&wdt->wdt_dev);
> }
>
> static struct platform_driver rn5t618_wdt_driver = {
> .probe = rn5t618_wdt_probe,
> - .remove = rn5t618_wdt_remove,
> .driver = {
> .name = DRIVER_NAME,
> },
> --
> 2.39.1
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] watchdog: wm8350: Simplify using devm_watchdog_register_device()
2023-03-06 17:09 ` [PATCH 3/3] watchdog: wm8350: " Uwe Kleine-König
@ 2023-03-06 17:31 ` Guenter Roeck
2023-03-06 19:39 ` kernel test robot
1 sibling, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2023-03-06 17:31 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Wim Van Sebroeck, patches, linux-watchdog, linux-kernel, kernel
On Mon, Mar 06, 2023 at 06:09:01PM +0100, Uwe Kleine-König wrote:
> This allows to drop the .remove() function as it only exists to
> unregister the watchdog device which is now done in a callback
> registered by devm_watchdog_register_device().
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/wm8350_wdt.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/drivers/watchdog/wm8350_wdt.c b/drivers/watchdog/wm8350_wdt.c
> index 33c62d51f00a..911ad64460a6 100644
> --- a/drivers/watchdog/wm8350_wdt.c
> +++ b/drivers/watchdog/wm8350_wdt.c
> @@ -153,18 +153,11 @@ static int wm8350_wdt_probe(struct platform_device *pdev)
> /* Default to 4s timeout */
> wm8350_wdt_set_timeout(&wm8350_wdt, 4);
>
> - return watchdog_register_device(&wm8350_wdt);
> -}
> -
> -static int wm8350_wdt_remove(struct platform_device *pdev)
> -{
> - watchdog_unregister_device(&wm8350_wdt);
> - return 0;
> + return devm_watchdog_register_device(&wm8350_wdt);
> }
>
> static struct platform_driver wm8350_wdt_driver = {
> .probe = wm8350_wdt_probe,
> - .remove = wm8350_wdt_remove,
> .driver = {
> .name = "wm8350-wdt",
> },
> --
> 2.39.1
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Uwe Kleine-König
` (2 preceding siblings ...)
2023-03-06 17:09 ` [PATCH 3/3] watchdog: wm8350: " Uwe Kleine-König
@ 2023-03-06 18:21 ` Guenter Roeck
3 siblings, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2023-03-06 18:21 UTC (permalink / raw)
To: Uwe Kleine-König, Wim Van Sebroeck
Cc: linux-watchdog, linux-kernel, patches, kernel
On 3/6/23 09:08, Uwe Kleine-König wrote:
> Hello,
>
> this series converts three drivers to use
> devm_watchdog_register_device(). This allows to drop their remove
> callback.
>
Side note: We could do more of the same by also replacing pm_runtime_enable()
with devm_pm_runtime_enable(), only I don't know if the additional
call to pm_runtime_dont_use_autosuspend() in its disable callback would
be a functional change. I also don't know if pm_runtime_put() in the remove
function is necessary or if it even makes sense. Any idea ?
Thanks,
Guenter
> Best regards
> Uwe
>
> Uwe Kleine-König (3):
> watchdog: bcm47xx: Simplify using devm_watchdog_register_device()
> watchdog: rn5t618: Simplify using devm_watchdog_register_device()
> watchdog: wm8350: Simplify using devm_watchdog_register_device()
>
> drivers/watchdog/bcm47xx_wdt.c | 12 +-----------
> drivers/watchdog/rn5t618_wdt.c | 12 +-----------
> drivers/watchdog/wm8350_wdt.c | 9 +--------
> 3 files changed, 3 insertions(+), 30 deletions(-)
>
>
> base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] watchdog: wm8350: Simplify using devm_watchdog_register_device()
2023-03-06 17:09 ` [PATCH 3/3] watchdog: wm8350: " Uwe Kleine-König
2023-03-06 17:31 ` Guenter Roeck
@ 2023-03-06 19:39 ` kernel test robot
1 sibling, 0 replies; 10+ messages in thread
From: kernel test robot @ 2023-03-06 19:39 UTC (permalink / raw)
To: Uwe Kleine-König, Wim Van Sebroeck, Guenter Roeck
Cc: oe-kbuild-all, patches, linux-watchdog, linux-kernel, kernel
Hi Uwe,
I love your patch! Yet something to improve:
[auto build test ERROR on fe15c26ee26efa11741a7b632e9f23b01aca4cc6]
url: https://github.com/intel-lab-lkp/linux/commits/Uwe-Kleine-K-nig/watchdog-bcm47xx-Simplify-using-devm_watchdog_register_device/20230307-011628
base: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
patch link: https://lore.kernel.org/r/20230306170901.2232323-4-u.kleine-koenig%40pengutronix.de
patch subject: [PATCH 3/3] watchdog: wm8350: Simplify using devm_watchdog_register_device()
config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230307/202303070325.74bkgnG6-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/94594fa75b3515d5dbff3ec2d1db1cf5627900b1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Uwe-Kleine-K-nig/watchdog-bcm47xx-Simplify-using-devm_watchdog_register_device/20230307-011628
git checkout 94594fa75b3515d5dbff3ec2d1db1cf5627900b1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303070325.74bkgnG6-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/watchdog/wm8350_wdt.c: In function 'wm8350_wdt_probe':
>> drivers/watchdog/wm8350_wdt.c:156:46: error: passing argument 1 of 'devm_watchdog_register_device' from incompatible pointer type [-Werror=incompatible-pointer-types]
156 | return devm_watchdog_register_device(&wm8350_wdt);
| ^~~~~~~~~~~
| |
| struct watchdog_device *
In file included from drivers/watchdog/wm8350_wdt.c:15:
include/linux/watchdog.h:226:50: note: expected 'struct device *' but argument is of type 'struct watchdog_device *'
226 | int devm_watchdog_register_device(struct device *dev, struct watchdog_device *);
| ~~~~~~~~~~~~~~~^~~
>> drivers/watchdog/wm8350_wdt.c:156:16: error: too few arguments to function 'devm_watchdog_register_device'
156 | return devm_watchdog_register_device(&wm8350_wdt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/watchdog.h:226:5: note: declared here
226 | int devm_watchdog_register_device(struct device *dev, struct watchdog_device *);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/watchdog/wm8350_wdt.c:157:1: error: control reaches end of non-void function [-Werror=return-type]
157 | }
| ^
cc1: some warnings being treated as errors
vim +/devm_watchdog_register_device +156 drivers/watchdog/wm8350_wdt.c
139
140 static int wm8350_wdt_probe(struct platform_device *pdev)
141 {
142 struct wm8350 *wm8350 = platform_get_drvdata(pdev);
143
144 if (!wm8350) {
145 pr_err("No driver data supplied\n");
146 return -ENODEV;
147 }
148
149 watchdog_set_nowayout(&wm8350_wdt, nowayout);
150 watchdog_set_drvdata(&wm8350_wdt, wm8350);
151 wm8350_wdt.parent = &pdev->dev;
152
153 /* Default to 4s timeout */
154 wm8350_wdt_set_timeout(&wm8350_wdt, 4);
155
> 156 return devm_watchdog_register_device(&wm8350_wdt);
157 }
158
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] watchdog: bcm47xx: Simplify using devm_watchdog_register_device()
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
2023-03-06 17:30 ` Guenter Roeck
@ 2023-03-06 20:17 ` Guenter Roeck
1 sibling, 0 replies; 10+ messages in thread
From: Guenter Roeck @ 2023-03-06 20:17 UTC (permalink / raw)
To: Uwe Kleine-König, Wim Van Sebroeck
Cc: linux-watchdog, linux-kernel, kernel
On 3/6/23 09:08, Uwe Kleine-König wrote:
> This allows to drop the .remove() function as it only exists to
> unregister the watchdog device which is now done in a callback
> registered by devm_watchdog_register_device().
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/watchdog/bcm47xx_wdt.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/drivers/watchdog/bcm47xx_wdt.c b/drivers/watchdog/bcm47xx_wdt.c
> index 05425c1dfd4c..8698ef94dddf 100644
> --- a/drivers/watchdog/bcm47xx_wdt.c
> +++ b/drivers/watchdog/bcm47xx_wdt.c
> @@ -202,7 +202,7 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
> watchdog_set_restart_priority(&wdt->wdd, 64);
> watchdog_stop_on_reboot(&wdt->wdd);
>
> - ret = watchdog_register_device(&wdt->wdd);
> + ret = devm_watchdog_register_device(&wdt->wdd);
Oops, all those need &pdev->dev as first argument. Please resend with that fixed.
Thanks,
Guenter
> if (ret)
> goto err_timer;
>
> @@ -218,21 +218,11 @@ static int bcm47xx_wdt_probe(struct platform_device *pdev)
> return ret;
> }
>
> -static int bcm47xx_wdt_remove(struct platform_device *pdev)
> -{
> - struct bcm47xx_wdt *wdt = dev_get_platdata(&pdev->dev);
> -
> - watchdog_unregister_device(&wdt->wdd);
> -
> - return 0;
> -}
> -
> static struct platform_driver bcm47xx_wdt_driver = {
> .driver = {
> .name = "bcm47xx-wdt",
> },
> .probe = bcm47xx_wdt_probe,
> - .remove = bcm47xx_wdt_remove,
> };
>
> module_platform_driver(bcm47xx_wdt_driver);
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-03-06 20:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06 17:08 [PATCH 0/3] watchdog: Simplify using devm_watchdog_register_device() Uwe Kleine-König
2023-03-06 17:08 ` [PATCH 1/3] watchdog: bcm47xx: " Uwe Kleine-König
2023-03-06 17:30 ` Guenter Roeck
2023-03-06 20:17 ` Guenter Roeck
2023-03-06 17:09 ` [PATCH 2/3] watchdog: rn5t618: " Uwe Kleine-König
2023-03-06 17:31 ` Guenter Roeck
2023-03-06 17:09 ` [PATCH 3/3] watchdog: wm8350: " Uwe Kleine-König
2023-03-06 17:31 ` Guenter Roeck
2023-03-06 19:39 ` kernel test robot
2023-03-06 18:21 ` [PATCH 0/3] watchdog: " Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).