There are no external users of backlight_put(). Drop it and open code the two users in backlight.c.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -388,16 +388,6 @@ static inline int backlight_disable(struct backlight_device *bd) · 387 unmodified lines | ||
| 388 | 388 | return backlight_update_status(bd); |
| 389 | 389 | } |
| 390 | 390 | |
| 391 | −/** | |
| 392 | − * backlight_put - Drop backlight reference | |
| 393 | − * @bd: the backlight device to put | |
| 394 | − */ | |
| 395 | −static inline void backlight_put(struct backlight_device *bd) | |
| 396 | −{ | |
| 397 | − if (bd) | |
| 398 | − put_device(&bd->dev); | |
| 399 | −} | |
| 400 | − | |
| 401 | 391 | /** |
| 402 | 392 | * backlight_is_blank - Return true if display is expected to be blank |
| 403 | 393 | * @bd: the backlight device |