summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Draszik <draszik@google.com>2023-05-19 17:38:34 +0100
committerWill McVicker <willmcvicker@google.com>2023-11-03 16:25:34 -0700
commitd150a5159b13758da8d446e3203c91eb49024ed9 (patch)
treeacecfd5a2ef4d5cb484131916933e150ebce27bf
parent0c81a452691e3c1004e638cb09bc3a0282213b21 (diff)
downloadcommon-d150a5159b13758da8d446e3203c91eb49024ed9.tar.gz
treewide: class_create() has changed in 6.4
Upstream kernel commit [1] has changed the class_create() API and dropped the first argument. Follow this change here. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1aaba11da9aa ("driver core: class: remove module * from class_create()") Bug: 283465996 Test: TH Change-Id: I37c888a40d872699eabbcef89ecc39c3f515e439 Signed-off-by: André Draszik <draszik@google.com> Signed-off-by: Will McVicker <willmcvicker@google.com>
-rw-r--r--goog_touch_interface.c2
-rw-r--r--touch_offload.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/goog_touch_interface.c b/goog_touch_interface.c
index 9741aeb..52ab09a 100644
--- a/goog_touch_interface.c
+++ b/goog_touch_interface.c
@@ -3586,7 +3586,7 @@ struct goog_touch_interface *goog_touch_interface_probe(
}
if (!gti_class)
- gti_class = class_create(THIS_MODULE, GTI_NAME);
+ gti_class = class_create(GTI_NAME);
if (gti && gti_class) {
u32 dev_id = gti_dev_num;
diff --git a/touch_offload.c b/touch_offload.c
index 344b6ae..b996eca 100644
--- a/touch_offload.c
+++ b/touch_offload.c
@@ -697,7 +697,7 @@ int touch_offload_init(struct touch_offload_context *context)
goto err_cdev_add;
}
- context->cls = class_create(THIS_MODULE, context->device_name);
+ context->cls = class_create(context->device_name);
if (IS_ERR(context->cls)) {
pr_err("%s: class_create failed with error = %ld.\n",
__func__, PTR_ERR(context->cls));