Arnd Bergmann 42af6bcbc3 tty: hvc-iucv: fix function pointer casts
clang warns about explicitly casting between incompatible function
pointers:

drivers/tty/hvc/hvc_iucv.c:1100:23: error: cast from 'void (*)(const void *)' to 'void (*)(struct device *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
 1100 |         priv->dev->release = (void (*)(struct device *)) kfree;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add a separate function to handle this correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240213101756.461701-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-17 17:44:52 +01:00
..
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2023-11-03 15:44:25 -10:00
2023-12-08 12:02:37 +01:00
2023-08-11 21:12:47 +02:00