m68k: zorro - Kill warn_unused_result warnings
warning: ignoring return value of 'device_register', declared with attribute warn_unused_result warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
@ -77,17 +77,21 @@ static struct bin_attribute zorro_config_attr = {
|
||||
.read = zorro_read_config,
|
||||
};
|
||||
|
||||
void zorro_create_sysfs_dev_files(struct zorro_dev *z)
|
||||
int zorro_create_sysfs_dev_files(struct zorro_dev *z)
|
||||
{
|
||||
struct device *dev = &z->dev;
|
||||
int error;
|
||||
|
||||
/* current configuration's attributes */
|
||||
device_create_file(dev, &dev_attr_id);
|
||||
device_create_file(dev, &dev_attr_type);
|
||||
device_create_file(dev, &dev_attr_serial);
|
||||
device_create_file(dev, &dev_attr_slotaddr);
|
||||
device_create_file(dev, &dev_attr_slotsize);
|
||||
device_create_file(dev, &dev_attr_resource);
|
||||
sysfs_create_bin_file(&dev->kobj, &zorro_config_attr);
|
||||
if ((error = device_create_file(dev, &dev_attr_id)) ||
|
||||
(error = device_create_file(dev, &dev_attr_type)) ||
|
||||
(error = device_create_file(dev, &dev_attr_serial)) ||
|
||||
(error = device_create_file(dev, &dev_attr_slotaddr)) ||
|
||||
(error = device_create_file(dev, &dev_attr_slotsize)) ||
|
||||
(error = device_create_file(dev, &dev_attr_resource)) ||
|
||||
(error = sysfs_create_bin_file(&dev->kobj, &zorro_config_attr)))
|
||||
return error;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user