We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5165c17 commit f944e6bCopy full SHA for f944e6b
drivers/tty/hvc/hvc_iucv.c
@@ -1035,6 +1035,10 @@ static const struct attribute_group *hvc_iucv_dev_attr_groups[] = {
1035
NULL,
1036
};
1037
1038
+static void hvc_iucv_free(struct device *data)
1039
+{
1040
+ kfree(data);
1041
+}
1042
1043
/**
1044
* hvc_iucv_alloc() - Allocates a new struct hvc_iucv_private instance
@@ -1097,7 +1101,7 @@ static int __init hvc_iucv_alloc(int id, unsigned int is_console)
1097
1101
priv->dev->bus = &iucv_bus;
1098
1102
priv->dev->parent = iucv_root;
1099
1103
priv->dev->groups = hvc_iucv_dev_attr_groups;
1100
- priv->dev->release = (void (*)(struct device *)) kfree;
1104
+ priv->dev->release = hvc_iucv_free;
1105
rc = device_register(priv->dev);
1106
if (rc) {
1107
put_device(priv->dev);
0 commit comments