Merge tag 'for-6.6-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[platform/kernel/linux-rpi.git] / drivers / watchdog / ib700wdt.c
index a0ddedc..39ea970 100644 (file)
@@ -316,14 +316,13 @@ out_nostopreg:
        return res;
 }
 
-static int ibwdt_remove(struct platform_device *dev)
+static void ibwdt_remove(struct platform_device *dev)
 {
        misc_deregister(&ibwdt_miscdev);
        release_region(WDT_START, 1);
 #if WDT_START != WDT_STOP
        release_region(WDT_STOP, 1);
 #endif
-       return 0;
 }
 
 static void ibwdt_shutdown(struct platform_device *dev)
@@ -333,7 +332,7 @@ static void ibwdt_shutdown(struct platform_device *dev)
 }
 
 static struct platform_driver ibwdt_driver = {
-       .remove         = ibwdt_remove,
+       .remove_new     = ibwdt_remove,
        .shutdown       = ibwdt_shutdown,
        .driver         = {
                .name   = DRV_NAME,