Received: by 10.192.165.148 with SMTP id m20csp4333954imm; Tue, 24 Apr 2018 00:33:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsq1V+wAjUaqLEnjJyfYSuPHb2tajPNbXuO4O4Uredrksl3w4fpcQBN84URPBSYypFMUud X-Received: by 10.98.232.1 with SMTP id c1mr408240pfi.184.1524555211352; Tue, 24 Apr 2018 00:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524555211; cv=none; d=google.com; s=arc-20160816; b=WXSBDTZDpVuM26C80q8omPpyCi0DDSvdHF5Kn+AzLWnE0MlssqAvj0Y7orN0AGH2EC quUe9biHP+1hXEExX/a/Y8I75/LDQx18CqIs4n62AcVxnsLkb2hpq7TxKDG12E3AQZHF WHcLyJWi++D16s8RxsB3ICcly+fCnKeOgUp4Tn1UpcEP4xZW8GfgJfonOIyBxKat+XqJ H7GYJ58v/BieWXragW0HKJ9VLMUNi3JoOIWwSZmcE0zKkgsaY2LfxxxufEnq7P3PjOdP +O1GIlqBCtrTfVNt3qa4evbMGOTA2SBDNxNxLLbm+APpBL+4w9IGCCXgB1b97x6NNkei qKKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :in-reply-to:subject:cc:to:user-agent:organization:from:date :message-id:content-transfer-encoding:mime-version:dkim-signature :dkim-filter:arc-authentication-results; bh=k9nvUASywb3pJ0rSJ1v/mCbVTm8oeTeV6jDUBBVmFKE=; b=s98ei7DVIrSyjVTe8w9XK686bul0RFOd3rjya+vN17d+tmZLOvOVtPcm5dXT/7kyds o8JvzFB54CJQBW6VfeMiNB9oR2R83pg/UMVNAhpC14n24nT0L9+aE/iokfdeF+02eZiZ sWWpJu8npjSS/g1hFtNdJGiyJkr8Uh6PfK/9TMICfHtSWj6Yko28fbj/bd/8yKMGH8E6 o3uqANNifjWWf3pgHjtsu/TVYrn+38xT9GxfomYNVmU6KJdRar94ppslyUpbKwul6Jhu 2WpUuqeLIhPAXt6rkOq7X1l2MhWHbgrw+28wmFxPWE36/3GgHbrUyXrLMh09xwBR1SAn fhAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=uT+bhcMC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k195si11267965pgc.493.2018.04.24.00.33.16; Tue, 24 Apr 2018 00:33:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=uT+bhcMC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756326AbeDXHa5 (ORCPT + 99 others); Tue, 24 Apr 2018 03:30:57 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:42289 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755835AbeDXHaw (ORCPT ); Tue, 24 Apr 2018 03:30:52 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180424073050epoutp016c95647e4ff436af4839ca7f7101d2e8~oTr2ZmBOW0584205842epoutp01m; Tue, 24 Apr 2018 07:30:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180424073050epoutp016c95647e4ff436af4839ca7f7101d2e8~oTr2ZmBOW0584205842epoutp01m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524555050; bh=k9nvUASywb3pJ0rSJ1v/mCbVTm8oeTeV6jDUBBVmFKE=; h=Date:From:To:Cc:Subject:In-reply-to:References:From; b=uT+bhcMCY+icKETQPAtv8fpIYJaScVRm8G9otvTOxMCGwDOdKnmCZp0rFaGvQB2ww REJT6Eykb9SBrcaX9QvvpiO2uzU8UHF4c1JZULPTX/K02NFmWbAi13MOTit2vCoaWt rkCzlKjXV2EI2dF3MLFu5mNNNtNofQK5756FaTvY= Received: from epsmges2p2.samsung.com (unknown [182.195.40.158]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180424073047epcas1p1a2a36400ecc12bd0b59f0cf3a26f99aa~oTr0bxT-S0864208642epcas1p1C; Tue, 24 Apr 2018 07:30:47 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 19.21.04132.72DDEDA5; Tue, 24 Apr 2018 16:30:47 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20180424073047epcas2p4496fec33a8d365d0884a8887470dca3c~oTr0MlN312331123311epcas2p4K; Tue, 24 Apr 2018 07:30:47 +0000 (GMT) X-AuditID: b6c32a46-15dff70000001024-a1-5adedd278427 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C7.F3.03817.72DDEDA5; Tue, 24 Apr 2018 16:30:47 +0900 (KST) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Received: from [10.113.63.77] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7O00GAEI7BQ350@mmp2.samsung.com>; Tue, 24 Apr 2018 16:30:47 +0900 (KST) Message-id: <5ADEDD27.3070207@samsung.com> Date: Tue, 24 Apr 2018 16:30:47 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Wolfram Sang , linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 05/61] clk: samsung: simplify getting .drvdata In-reply-to: <20180419140641.27926-6-wsa+renesas@sang-engineering.com> X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjmO2fbmdLqa2l9zDI7dKGR5s5cfop2zw5lMbKoFmIn/VDRXdjZ ohs0itKke4oxpDKyYOA1lVxWpN0JxUqLwBFZ655dzSCjnR2jfr3P+/A8L+/78Kpp7SmVTl1o cxGnTShmVZGK1s7ZpvhZ/QFL4uCFVNzyNAYfGXhH4+7uBgY3DfQp8eeDASV+6K9S4ZY3Hyl8 svsqhXvuLcOd70uU+HdfowL7/L8APty1fKGGH3yyj+HbvP0M3+Q7oOIvntvNH272AT5YXa/g vzbFmhkLSSsgQh5xxhFbrj2v0Jafzq7MylmSY5qXaIg3pOBkNs4mWEk6uzTTHJ9RWBxalY3b KhS7Q5RZEEV27vw0p93tInEFdtGVzm4yGLgEQ2JyAseFqjE7lTOFJJtJwY3h75RjZMy27wMH FB4wFFkGItQIJqHey0NUGYhUa+ElgHqDjaPND4Dqng0pyoA6rKqtyJIMWtgA0PEah4Q1cDwa PhEIS2g4Fd14UCTRNJyNWi7XM/KYfoDqn54Fsl6PDn27Q0l6BZyB7hwXJFoVoq+9fqKS8Dg4 DfUOD4Tl0XADajs9xEg4Cmahx/duAWkmDb00am/9EjZMgIvRq9pHtIQjYAaqK/WH90ewhEHt 1z1AvnIpev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oNCe1+BCjNAeLkjgvf/6xSCGB9MSS1OzU1ILUIpgsEwenVAMj+63+jjt5 eScfaG/jkbvN/ll0v4LiuemLJC6uXbKZR6irwX7N9fdnuONE5v4+IbGn9PQ/kyyx3MszL8um Jh2XPHeH1b5x1mLGF6ofnZ4vm/7/1z5D32t+U5g9JBbX271iv1Ohw8vbPYmlXsq7+6VFaJqD ENPsMDvRB5ucjeQZpxmdjdn69+lEJZbijERDLeai4kQAstz/PJQCAAA= X-CMS-MailID: 20180424073047epcas2p4496fec33a8d365d0884a8887470dca3c X-Msg-Generator: CA CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180419140651epcas5p22119a061c760dd54c0c3e630b053ec1b X-RootMTR: 20180419140651epcas5p22119a061c760dd54c0c3e630b053ec1b References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> <20180419140641.27926-6-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018년 04월 19일 23:05, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > drivers/clk/samsung/clk-s3c2410-dclk.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c > index 077df3e539a7..f41d89cef0f1 100644 > --- a/drivers/clk/samsung/clk-s3c2410-dclk.c > +++ b/drivers/clk/samsung/clk-s3c2410-dclk.c > @@ -219,8 +219,7 @@ static int s3c24xx_dclk1_div_notify(struct notifier_block *nb, > #ifdef CONFIG_PM_SLEEP > static int s3c24xx_dclk_suspend(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct s3c24xx_dclk *s3c24xx_dclk = platform_get_drvdata(pdev); > + struct s3c24xx_dclk *s3c24xx_dclk = dev_get_drvdata(dev); > > s3c24xx_dclk->reg_save = readl_relaxed(s3c24xx_dclk->base); > return 0; > @@ -228,8 +227,7 @@ static int s3c24xx_dclk_suspend(struct device *dev) > > static int s3c24xx_dclk_resume(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct s3c24xx_dclk *s3c24xx_dclk = platform_get_drvdata(pdev); > + struct s3c24xx_dclk *s3c24xx_dclk = dev_get_drvdata(dev); > > writel_relaxed(s3c24xx_dclk->reg_save, s3c24xx_dclk->base); > return 0; > Reviewed-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics