|
@@ -574,7 +574,7 @@ static ssize_t show_alarms(struct device *dev, char *buf) {
|
|
struct via686a_data *data = via686a_update_device(dev);
|
|
struct via686a_data *data = via686a_update_device(dev);
|
|
return sprintf(buf,"%d\n", ALARMS_FROM_REG(data->alarms));
|
|
return sprintf(buf,"%d\n", ALARMS_FROM_REG(data->alarms));
|
|
}
|
|
}
|
|
-static DEVICE_ATTR(alarms, S_IRUGO | S_IWUSR, show_alarms, NULL);
|
|
|
|
|
|
+static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
|
|
|
|
|
|
/* The driver. I choose to use type i2c_driver, as at is identical to both
|
|
/* The driver. I choose to use type i2c_driver, as at is identical to both
|
|
smbus_driver and isa_driver, and clients could be of either kind */
|
|
smbus_driver and isa_driver, and clients could be of either kind */
|