From patchwork Fri Sep 22 07:52:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9965353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A972602D8 for ; Fri, 22 Sep 2017 07:52:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C9B5297A7 for ; Fri, 22 Sep 2017 07:52:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 113F2297AC; Fri, 22 Sep 2017 07:52:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0480297A7 for ; Fri, 22 Sep 2017 07:52:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751800AbdIVHwe (ORCPT ); Fri, 22 Sep 2017 03:52:34 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:51311 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbdIVHwd (ORCPT ); Fri, 22 Sep 2017 03:52:33 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20170922075230epoutp03b1da13f35b9b36fdb4d50b14a7dc4b19~mn7r5TQ4L2308323083epoutp03D; Fri, 22 Sep 2017 07:52:30 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.64]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170922075230epcas1p3d291ca1375648d1002f9186dff908411~mn7rhU_TB2954529545epcas1p3i; Fri, 22 Sep 2017 07:52:30 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 2C.E2.20955.E31C4C95; Fri, 22 Sep 2017 16:52:30 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170922075230epcas1p141c817bf8524e69bba1a3482c62e9f67~mn7rPYXOA3267032670epcas1p1J; Fri, 22 Sep 2017 07:52:30 +0000 (GMT) X-AuditID: b6c32a36-f79196d0000051db-59-59c4c13e5778 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.02.11757.D31C4C95; Fri, 22 Sep 2017 16:52:29 +0900 (KST) Received: from localhost.localdomain ([10.113.62.47]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OWO00F4Z8JFAB30@mmp2.samsung.com>; Fri, 22 Sep 2017 16:52:29 +0900 (KST) From: Andi Shyti To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH] Input: stmfts - use devm_device_add_group Date: Fri, 22 Sep 2017 16:52:38 +0900 Message-id: <20170922075238.22938-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.14.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFKsWRmVeSWpSXmKPExsWy7bCmvq7dwSORBgvXillsP/KM1WLxj+dM FvOPnGO1OLzoBaPFzU/fWC0u75rD5sDmcX3JJ2aPnbPusnv0bVnF6PF5k1wAS1SqTUZqYkpq kUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7QciWFssScU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ksWMMEUsMioCrx9eJe MJtXwFri+v0dLCC2hIC8xLkHt5knMHItYGRYxSiZWlCcm55bbFRgmJdarlecmFtcmpeul5yf u4kR6P1th7X6djDeXxJ/iFGAg1GJh/fGvsORQqyJZcWVuYcYJTiYlUR4y5ceiRTiTUmsrEot yo8vKs1JLT7EKM3BoiTOm9k3I1JIID2xJDU7NbUgtQgmy8TBKdXAKKN9aO1X+7s+9zYsddkU nWWumNxxrttdwuzD7ATpl2fmu5t3ZBmVGS3O3qK5appBg1eU8eKLlx4z2nBOu2WfVjpz8o5/ DTnKP1ax52YHvpn9co9dus/3H38dVIJ1nvJm1YfZn2vb8vz5q2stKxascNs/a6NWPp/BipP3 vnzdd4HrXtHD6BLXiUosxRmJhlrMRcWJAKyc/+f6AQAA X-CMS-MailID: 20170922075230epcas1p141c817bf8524e69bba1a3482c62e9f67 X-Msg-Generator: CA X-Sender-IP: 182.195.42.142 X-Local-Sender: =?UTF-8?B?7JWI65SUG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLzthLAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kaSBTaHl0aRtUaXplbiBQbGF0Zm9ybSBMYWIuG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170922075230epcas1p141c817bf8524e69bba1a3482c62e9f67 X-RootMTR: 20170922075230epcas1p141c817bf8524e69bba1a3482c62e9f67 References: Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP instead of sysfs_create_group. Signed-off-by: Andi Shyti --- drivers/input/touchscreen/stmfts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c index 157fdb4bb2e8..2351199189a4 100644 --- a/drivers/input/touchscreen/stmfts.c +++ b/drivers/input/touchscreen/stmfts.c @@ -727,8 +727,7 @@ static int stmfts_probe(struct i2c_client *client, } } - err = sysfs_create_group(&sdata->client->dev.kobj, - &stmfts_attribute_group); + err = devm_device_add_group(&client->dev, &stmfts_attribute_group); if (err) return err; @@ -740,7 +739,6 @@ static int stmfts_probe(struct i2c_client *client, static int stmfts_remove(struct i2c_client *client) { pm_runtime_disable(&client->dev); - sysfs_remove_group(&client->dev.kobj, &stmfts_attribute_group); return 0; }