diff --git a/drivers/misc/utag/utags.c b/drivers/misc/utag/utags.c index d76f340639f7..cf0599b91725 100644 --- a/drivers/misc/utag/utags.c +++ b/drivers/misc/utag/utags.c @@ -1961,11 +1961,6 @@ static int utags_probe(struct platform_device *pdev) struct ctrl *ctrl; char buf[UTAGS_QNAME_SIZE]; - if (!try_module_get(THIS_MODULE)) { - pr_err("Failed to get this utags module\n"); - return -EIO; - } - ctrl = devm_kzalloc(&pdev->dev, sizeof(struct ctrl), GFP_KERNEL); if (!ctrl) return -ENOMEM; @@ -2010,12 +2005,6 @@ static int utags_probe(struct platform_device *pdev) return -EIO; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0) - /* force this driver to be unloadable because the proc tree cannot - be removed in GKI 5.4 */ - module_put(THIS_MODULE); -#endif - if (!strncmp(ctrl->dir_name, HW_ROOT, sizeof(HW_ROOT))) ctrl->hwtag = 1;