Skip to content

Commit 3db879b

Browse files
authored
Compatibility with kernel version >= 6.1
1 parent 51de972 commit 3db879b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

module.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Strato Pi Fan kernel module
33
*
4-
* Copyright (C) 2021 Sfera Labs S.r.l.
4+
* Copyright (C) 2021-2023 Sfera Labs S.r.l.
55
*
66
* For information, visit https://www.sferalabs.cc
77
*
@@ -22,7 +22,7 @@
2222
MODULE_LICENSE("GPL");
2323
MODULE_AUTHOR("Sfera Labs - http://sferalabs.cc");
2424
MODULE_DESCRIPTION("Strato Pi Fan driver module");
25-
MODULE_VERSION("1.0");
25+
MODULE_VERSION("1.1");
2626

2727
struct DeviceAttrBean {
2828
struct device_attribute devAttr;
@@ -224,12 +224,6 @@ static int stratopifan_i2c_probe(struct i2c_client *client,
224224
return 0;
225225
}
226226

227-
static int stratopifan_i2c_remove(struct i2c_client *client) {
228-
printk(KERN_INFO "stratopifan: - | i2c remove addr 0x%02hx\n",
229-
client->addr);
230-
return 0;
231-
}
232-
233227
const struct of_device_id stratopifan_of_match[] = {
234228
{ .compatible = "sferalabs,stratopifan", },
235229
{ },
@@ -249,7 +243,6 @@ static struct i2c_driver stratopifan_i2c_driver = {
249243
.of_match_table = of_match_ptr(stratopifan_of_match),
250244
},
251245
.probe = stratopifan_i2c_probe,
252-
.remove = stratopifan_i2c_remove,
253246
.id_table = stratopifan_i2c_id,
254247
};
255248

0 commit comments

Comments
 (0)