Re: [PATCH] tpm: Fix the driver cleanup code
From: Jason Gunthorpe
Date: Thu Dec 21 2017 - 17:31:07 EST
On Thu, Dec 21, 2017 at 09:54:26PM +0000, Shaikh, Azhar wrote:
> Yes, I checked this part. What I was referring to is any other
> callback function similar to clk_enable if gets added in future and
> then needs to Access ops even after it is set to NULL...
You can't call callback functions after tpm_unregister_chip, it isn't
allowed.
This is a special case where we know the specific implementation of
this specific callback is OK.
> But yes I get your point now.
>
> So do you mean something like this?
Yes
Jason