soc: apple: rtkit: Stop casting function pointer signatures
Fixes: 9bd1d9a0d8bb ("soc: apple: Add RTKit IPC library") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sven Peter <sven@svenpeter.dev> Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
422d0b860d
commit
5acf07ff25
@ -926,8 +926,10 @@ int apple_rtkit_wake(struct apple_rtkit *rtk)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(apple_rtkit_wake);
|
EXPORT_SYMBOL_GPL(apple_rtkit_wake);
|
||||||
|
|
||||||
static void apple_rtkit_free(struct apple_rtkit *rtk)
|
static void apple_rtkit_free(void *data)
|
||||||
{
|
{
|
||||||
|
struct apple_rtkit *rtk = data;
|
||||||
|
|
||||||
mbox_free_channel(rtk->mbox_chan);
|
mbox_free_channel(rtk->mbox_chan);
|
||||||
destroy_workqueue(rtk->wq);
|
destroy_workqueue(rtk->wq);
|
||||||
|
|
||||||
@ -950,8 +952,7 @@ struct apple_rtkit *devm_apple_rtkit_init(struct device *dev, void *cookie,
|
|||||||
if (IS_ERR(rtk))
|
if (IS_ERR(rtk))
|
||||||
return rtk;
|
return rtk;
|
||||||
|
|
||||||
ret = devm_add_action_or_reset(dev, (void (*)(void *))apple_rtkit_free,
|
ret = devm_add_action_or_reset(dev, apple_rtkit_free, rtk);
|
||||||
rtk);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user