diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 050a35a..11f2331 100644 --- a/drivers/eeprom/at24.c +++ b/drivers/eeprom/at24.c @@ -352,7 +352,7 @@ return at24_write(at24, buf, off, count); } -static ssize_t at24_cdev_protect(struct cdev *cdev, size_t count, loff_t offset, +static int at24_cdev_protect(struct cdev *cdev, size_t count, loff_t offset, int prot) { struct at24_data *at24 = cdev->priv;