watchdog: cpwd: fix build regression
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Oct 2019 07:36:16 +0000 (09:36 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 5 Nov 2019 15:58:11 +0000 (16:58 +0100)
commitc58e81341aecf79c8ce6ea79fee31b3193cd6e78
treedeffa3d1e425d5262bb7b9893ef86fbc2eafebf6
parenta99d8080aaf358d5d23581244e5da23b35e340b9
watchdog: cpwd: fix build regression

The compat_ptr_ioctl() infrastructure did not make it into
linux-5.4, so cpwd now fails to build.

Fix it by using an open-coded version.

Fixes: 68f28b01fb9e ("watchdog: cpwd: use generic compat_ptr_ioctl")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/cpwd.c