From ecbf9b4c1a9b1b51863c055f90fc6b47783ddb55 Mon Sep 17 00:00:00 2001 From: Jeevaka Prabu Badrappan Date: Tue, 20 Aug 2024 15:01:25 +0530 Subject: [PATCH] socwatch: remove module * from class_create() As the class_create definition has changed, remove the module * from class_create. Tests done: - socwatch driver built successfully Tracked-On: OAM-128692 Signed-off-by: Jeevaka Prabu Badrappan --- drivers/platform/x86/socwatch/sw_file_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/socwatch/sw_file_ops.c b/drivers/platform/x86/socwatch/sw_file_ops.c index 4e4326898afe..a8360f92f63a 100644 --- a/drivers/platform/x86/socwatch/sw_file_ops.c +++ b/drivers/platform/x86/socwatch/sw_file_ops.c @@ -314,7 +314,7 @@ int sw_register_dev(struct sw_file_ops *ops) */ ret = alloc_chrdev_region(&apwr_dev, 0, 1, PW_DEVICE_NAME); apwr_dev_major_num = MAJOR(apwr_dev); - apwr_class = class_create(THIS_MODULE, "apwr"); + apwr_class = class_create("apwr"); if (IS_ERR(apwr_class)) pw_pr_error("Error registering apwr class\n");