Commit a979182
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 95cdd53 ("fbdev: efifb: Register sysfs groups
through driver core").
[HOW]
Register sysfs groups through driver core.
Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
Signed-off-by: Helge Deller <deller@gmx.de>1 parent 5bbcc76 commit a979182
1 file changed
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1350 | 1352 | | |
| 1353 | + | |
1351 | 1354 | | |
1352 | 1355 | | |
1353 | 1356 | | |
| |||
1516 | 1519 | | |
1517 | 1520 | | |
1518 | 1521 | | |
1519 | | - | |
1520 | 1522 | | |
1521 | 1523 | | |
1522 | 1524 | | |
| |||
1530 | 1532 | | |
1531 | 1533 | | |
1532 | 1534 | | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | 1535 | | |
1540 | 1536 | | |
1541 | 1537 | | |
| |||
2641 | 2637 | | |
2642 | 2638 | | |
2643 | 2639 | | |
| 2640 | + | |
2644 | 2641 | | |
2645 | 2642 | | |
2646 | 2643 | | |
| |||
0 commit comments