Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
altra_cpuectlr: fix re-insmod errors
Browse files Browse the repository at this point in the history
Signed-off-by: Bobo <[email protected]>
  • Loading branch information
bobolmw authored and adamliyi committed Nov 19, 2021
1 parent 4787e43 commit 5d26423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/firmware/altra_cpuectlr_el1.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ static int __init altra_cpuectlr_init(void)
static void __exit altra_cpuectlr_exit(void)
{
sysfs_remove_group(cpuectlr_el1_kobj, &cpuectlr_el1_group);
kobject_put(cpuectlr_el1_kobj);
if (cpuectlr_el1_addr)
iounmap(cpuectlr_el1_addr);
}

module_init(altra_cpuectlr_init);
Expand Down

0 comments on commit 5d26423

Please sign in to comment.