mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
soc: apple: sart: Stop casting function pointer signatures
Fixes: b170143ae1
("soc: apple: Add SART driver")
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
9abf2313ad
commit
422d0b860d
@ -164,6 +164,11 @@ static int apple_sart_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void apple_sart_put_device(void *dev)
|
||||
{
|
||||
put_device(dev);
|
||||
}
|
||||
|
||||
struct apple_sart *devm_apple_sart_get(struct device *dev)
|
||||
{
|
||||
struct device_node *sart_node;
|
||||
@ -187,7 +192,7 @@ struct apple_sart *devm_apple_sart_get(struct device *dev)
|
||||
return ERR_PTR(-EPROBE_DEFER);
|
||||
}
|
||||
|
||||
ret = devm_add_action_or_reset(dev, (void (*)(void *))put_device,
|
||||
ret = devm_add_action_or_reset(dev, apple_sart_put_device,
|
||||
&sart_pdev->dev);
|
||||
if (ret)
|
||||
return ERR_PTR(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user