From: Barnabás Pőcze Date: Wed, 3 Feb 2021 21:55:05 +0000 (+0000) Subject: platform/x86: ideapad-laptop: use device_{add,remove}_group X-Git-Tag: v5.15~1725^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8782d8d7e8433924b2608ace57c778902c68ecec;p=platform%2Fkernel%2Flinux-starfive.git platform/x86: ideapad-laptop: use device_{add,remove}_group Use device_{add,remove}_group instead of sysfs_{add,remove}_group. Signed-off-by: Barnabás Pőcze Link: https://lore.kernel.org/r/20210203215403.290792-8-pobrn@protonmail.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 1a91588..2153688 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -924,14 +924,14 @@ 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, - &ideapad_attribute_group); + 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, - &ideapad_attribute_group); + device_remove_group(&priv->platform_device->dev, + &ideapad_attribute_group); } /*