Commit 8782d8d7 authored by Barnabás Pőcze's avatar Barnabás Pőcze Committed by Hans de Goede
Browse files

platform/x86: ideapad-laptop: use device_{add,remove}_group



Use device_{add,remove}_group instead of sysfs_{add,remove}_group.

Signed-off-by: default avatarBarnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-8-pobrn@protonmail.com


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent d6b50889
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -924,13 +924,13 @@ static void ideapad_unregister_rfkill(struct ideapad_private *priv, int dev)
 */
static int ideapad_sysfs_init(struct ideapad_private *priv)
{
	return sysfs_create_group(&priv->platform_device->dev.kobj,
	return device_add_group(&priv->platform_device->dev,
				&ideapad_attribute_group);
}

static void ideapad_sysfs_exit(struct ideapad_private *priv)
{
	sysfs_remove_group(&priv->platform_device->dev.kobj,
	device_remove_group(&priv->platform_device->dev,
			    &ideapad_attribute_group);
}