Commit a979182a authored by Shixiong Ou's avatar Shixiong Ou Committed by Helge Deller
Browse files

fbdev: lcdcfb: Register sysfs groups through driver core



[WHY]
   1. The driver forgot to call device_remove_file()
   in sh_mobile_lcdc_overlay_fb_unregister(), and there was
   no error handling when calling device_create_file() failed.

   2. This should probably use device_add_group() instead of
   individual files to simplify both creation and removal. [Arnd]

   3. The driver core can register and cleanup sysfs groups already.
   as commit 95cdd538 ("fbdev: efifb: Register sysfs groups
   through driver core").

[HOW]
   Register sysfs groups through driver core.

Signed-off-by: default avatarShixiong Ou <oushixiong@kylinos.cn>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 5bbcc764
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment