lkml.org 
[lkml]   [2016]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] simplefb: Disable and release clocks and regulators in destroy callback
From
Date
On 07/09/16 12:09, Chen-Yu Tsai wrote:
> simplefb gets unregister when a proper framebuffer driver comes in and
> kicks it out. However the claimed clocks and regulators stay enabled
> as they are only released in the platform device remove function, which
> in theory would never get called.
>
> Move the clock/regulator cleanup into the framebuffer destroy callback,
> which gets called as part of the framebuffer unregister process.
>
> Note this introduces asymmetry in how the resources are claimed and
> released.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
> ---
> drivers/video/fbdev/simplefb.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)

Thanks, queued for 4.9.

Tomi

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-09-27 10:24    [W:0.046 / U:1.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site