Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: sysfs: remove return value of acpi_device_setup_files()

The function can not fail anymore, so drop its return value.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240709-acpi-sysfs-groups-v2-5-058ab0667fa8@weissschuh.net
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Thomas Weißschuh and committed by
Rafael J. Wysocki
bb664e50 cd488472

+3 -10
+1 -5
drivers/acpi/device_sysfs.c
··· 605 605 * acpi_device_setup_files - Create sysfs attributes of an ACPI device. 606 606 * @dev: ACPI device object. 607 607 */ 608 - int acpi_device_setup_files(struct acpi_device *dev) 608 + void acpi_device_setup_files(struct acpi_device *dev) 609 609 { 610 - int result = 0; 611 - 612 610 acpi_expose_nondev_subnodes(&dev->dev.kobj, &dev->data); 613 - 614 - return result; 615 611 } 616 612 617 613 /**
+1 -1
drivers/acpi/internal.h
··· 118 118 int type, void (*release)(struct device *)); 119 119 int acpi_tie_acpi_dev(struct acpi_device *adev); 120 120 int acpi_device_add(struct acpi_device *device); 121 - int acpi_device_setup_files(struct acpi_device *dev); 121 + void acpi_device_setup_files(struct acpi_device *dev); 122 122 void acpi_device_remove_files(struct acpi_device *dev); 123 123 extern const struct attribute_group *acpi_groups[]; 124 124 void acpi_device_add_finalize(struct acpi_device *device);
+1 -4
drivers/acpi/scan.c
··· 795 795 goto err; 796 796 } 797 797 798 - result = acpi_device_setup_files(device); 799 - if (result) 800 - pr_err("Error creating sysfs interface for device %s\n", 801 - dev_name(&device->dev)); 798 + acpi_device_setup_files(device); 802 799 803 800 return 0; 804 801