Re: [PATCH v2] fbdev: lcdcfb: add missing device_remove_file()

From
Shixiong Ou <hidden>
Date
2025-02-19 07:41:41
Also in
dri-devel, lkml
Reply to
Arnd Bergmann, 2025-02-19
在 2025/2/19 14:47, Arnd Bergmann 写道:
On Sat, Feb 8, 2025, at 10:29, oushixiong1025@163.com wrote:
quoted
From: Shixiong Ou <redacted>

1. The device_remove_file() need to be called when driver is removing.
2. The device_remove_file() need to be called if the call to
    device_create_file() fails.
This should probably use device_add_group() instead of
individual files to simplify both creation and removal.
It would also avoid the bug you introduced that gcc warns
about.

       Arnd
Thank you for your suggestion. I will incorporate your advice and resend a patch.

Thanks and Regards,
Shixiong Ou.
Thread (4 messages) 4 messages, 3 authors, last reply 2025-02-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help