Skip to content

Commit

Permalink
socwatch: remove module * from class_create()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
JeevakaPrabu committed Dec 20, 2024
1 parent 2be9953 commit ecbf9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/socwatch/sw_file_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit ecbf9b4

Please sign in to comment.