mirror of
https://github.com/Fred78290/nct6687d
synced 2024-11-16 07:48:04 +01:00
fix compilation with kernel 6.11.0-rc6
This commit is contained in:
parent
0ee35ed954
commit
66c35797a5
1 changed files with 1 additions and 6 deletions
|
@ -37,9 +37,6 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
|
||||
enum kinds
|
||||
{
|
||||
nct6683,
|
||||
|
@ -1034,7 +1031,7 @@ static void nct6687_setup_pwm(struct nct6687_data *data)
|
|||
}
|
||||
}
|
||||
|
||||
static int nct6687_remove(struct platform_device *pdev)
|
||||
static void nct6687_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct nct6687_data *data = dev_get_drvdata(dev);
|
||||
|
@ -1048,8 +1045,6 @@ static int nct6687_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
mutex_unlock(&data->update_lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nct6687_probe(struct platform_device *pdev)
|
||||
|
|
Loading…
Reference in a new issue