Skip to content

Commit 43b9ac9

Browse files
committed
firmware: arm_scpi: convert platform driver to use dev_groups
Platform drivers now have the option to have the platform core create and remove any needed sysfs attribute files. So take advantage of that and do not register "by hand" a sysfs group of attributes. Acked-by: Sudeep Holla <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0682e00 commit 43b9ac9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/firmware/arm_scpi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,10 +1011,6 @@ static int scpi_probe(struct platform_device *pdev)
10111011
scpi_info->firmware_version));
10121012
scpi_info->scpi_ops = &scpi_ops;
10131013

1014-
ret = devm_device_add_groups(dev, versions_groups);
1015-
if (ret)
1016-
dev_err(dev, "unable to create sysfs version group\n");
1017-
10181014
return devm_of_platform_populate(dev);
10191015
}
10201016

@@ -1030,6 +1026,7 @@ static struct platform_driver scpi_driver = {
10301026
.driver = {
10311027
.name = "scpi_protocol",
10321028
.of_match_table = scpi_of_match,
1029+
.dev_groups = versions_groups,
10331030
},
10341031
.probe = scpi_probe,
10351032
.remove = scpi_remove,

0 commit comments

Comments
 (0)