[BUG] mfd: tps65217: Got a warning when removing the module

From: Zheyu Ma
Date: Sat May 21 2022 - 02:38:18 EST


Hello,

I found a bug in the driver tps65217, the following log reveals it:

[ 53.301059] remove_proc_entry: removing non-empty directory
'irq/1', leaking at least 'i8042'
[ 53.301774] WARNING: CPU: 0 PID: 305 at fs/proc/generic.c:717
remove_proc_entry+0x389/0x3f0
[ 53.304647] RIP: 0010:remove_proc_entry+0x389/0x3f0
[ 53.308912] Call Trace:
[ 53.309044] <TASK>
[ 53.309158] unregister_irq_proc+0x14c/0x170
[ 53.309377] irq_free_descs+0x94/0xe0
[ 53.309777] tps65217_remove+0x117/0x280 [tps65217]

Regards,
Zheyu Ma