···574 struct via686a_data *data = via686a_update_device(dev);575 return sprintf(buf,"%d\n", ALARMS_FROM_REG(data->alarms));576}577-static DEVICE_ATTR(alarms, S_IRUGO | S_IWUSR, show_alarms, NULL);578579/* The driver. I choose to use type i2c_driver, as at is identical to both580 smbus_driver and isa_driver, and clients could be of either kind */···651 new_client->adapter = adapter;652 new_client->driver = &via686a_driver;653 new_client->flags = 0;654- new_client->dev.parent = &adapter->dev;655656 /* Fill in the remaining client fields and put into the global list */657- snprintf(new_client->name, I2C_NAME_SIZE, client_name);658659 data->valid = 0;660 init_MUTEX(&data->update_lock);
···574 struct via686a_data *data = via686a_update_device(dev);575 return sprintf(buf,"%d\n", ALARMS_FROM_REG(data->alarms));576}577+static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);578579/* The driver. I choose to use type i2c_driver, as at is identical to both580 smbus_driver and isa_driver, and clients could be of either kind */···651 new_client->adapter = adapter;652 new_client->driver = &via686a_driver;653 new_client->flags = 0;0654655 /* Fill in the remaining client fields and put into the global list */656+ strlcpy(new_client->name, client_name, I2C_NAME_SIZE);657658 data->valid = 0;659 init_MUTEX(&data->update_lock);