Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp345155imm; Tue, 15 May 2018 02:32:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZovMIGKqReXAZ81GvcuSh2ulomlXW+GpaIYIuaA+zLWN/NvZxklwmTWKtSvAGE0ZfXbafon X-Received: by 2002:a63:ba4c:: with SMTP id l12-v6mr11679836pgu.157.1526376773310; Tue, 15 May 2018 02:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526376773; cv=none; d=google.com; s=arc-20160816; b=KPubRaVoAbcqyzP5FulYdFrvflqUuwtXxeJrvXFXC1BHL3v5gJd/7dPTgZxM8k82b/ S5ViplpLj2/k563e46A2WxXa06PfQnxZWUh2RPTIPbQYXNHFVBuAIyHttfT/MFZ2HWxV ahj3uf/W84HjSvTB1ksu9+jsNSe2YF2O8X7rRnXBwbkXJDELwia/PQTrkLEDnxZF1jBk mZ4GDmiHC5DZSOc99fyz/hz0GC2uxyqOno0kEBrMsfflK4WX5fdIeRLmpDQ0C0xKiidW s/Y5E6ovwf1KJw1kA/5KVuR6GKZDiOg3BnJKZFCgB5nK2I3f5xeUF/0kBaHe+3CjfTlq KZCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter:arc-authentication-results; bh=CcWYv/A71FO4AqSvIpjd/wsdpzWpVsivEVpn657VDJc=; b=SW7kCTOBh8mvlSgVyebc27tq6fj7PhNyOyE5F+t8k0QxM9JH8xs+II7+W8YFysyZTR rrmrbEt2FBtaoYb0rsGC56U+PevSrJiWCWLoMirqMcZK+aYySNtKh+ejTlxY09IBUyE5 e1Uxv3WPz0/2yy1imhneR+7a9FO9AxN/rZ3FA6upHayUEZMwSz8QGWQsMveddyMdNosa ruZ1Wp5yJ+PVIbyYGDXPoowGp9qbI65WJHu32jRGYcbtS05QB1/DN4PSsakdo9WffXB3 EVNhzFFA3Oa0Ki9ljEjE6032EjbLECyzwICN1zJDKgFoHX/dj2RgSK+jdS026AuWdRoy 6sqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kOtdzl7V; 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 d12-v6si9024430pgq.154.2018.05.15.02.32.38; Tue, 15 May 2018 02:32:53 -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=kOtdzl7V; 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 S1752620AbeEOJc0 (ORCPT + 99 others); Tue, 15 May 2018 05:32:26 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:43448 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752475AbeEOJcW (ORCPT ); Tue, 15 May 2018 05:32:22 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180515093219epoutp017c0b305b045df2b31efda0f9e1b0b90a~ux47MaS2j1866218662epoutp01S; Tue, 15 May 2018 09:32:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180515093219epoutp017c0b305b045df2b31efda0f9e1b0b90a~ux47MaS2j1866218662epoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526376739; bh=CcWYv/A71FO4AqSvIpjd/wsdpzWpVsivEVpn657VDJc=; h=Subject:To:Cc:From:Date:In-reply-to:References:From; b=kOtdzl7Vs2b7hqCn1eNY/ARXCXahLefLwFl0JfC2rt+gof6bjG5/67TCqPApNW1t8 0xY7Z/lAWBtV+touHQQ6qeRiaj2XGXfr7j/FVqmjjO6KJs0ouNzZ81dbaRM5Bygs64 9jctp7UW1B8Y5oB/oMwL6KHikFgNqvRY0uosrTXg= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180515093219epcas1p192a9a0e6666fe082904e35c04320d31e~ux467_A3G0566305663epcas1p1G; Tue, 15 May 2018 09:32:19 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id A9.27.04132.329AAFA5; Tue, 15 May 2018 18:32:19 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180515093219epcas1p28a5fa4be53b9ea0fd85e4726cf92f804~ux46sRQKD0636206362epcas1p2S; Tue, 15 May 2018 09:32:19 +0000 (GMT) X-AuditID: b6c32a35-9cbff70000001024-9d-5afaa923f6c2 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.2B.03822.329AAFA5; Tue, 15 May 2018 18:32:19 +0900 (KST) Received: from [106.116.147.40] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8R00365JTPE370@mmp2.samsung.com>; Tue, 15 May 2018 18:32:19 +0900 (KST) Subject: Re: [PATCH 05/61] clk: samsung: simplify getting .drvdata To: Michael Turquette , Stephen Boyd Cc: Wolfram Sang , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , Tomasz Figa , Chanwoo Choi , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org From: Sylwester Nawrocki Message-id: <93ee0d94-81aa-db81-2bff-87f5f91bc9d3@samsung.com> Date: Tue, 15 May 2018 11:32:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-version: 1.0 In-reply-to: <20180419140641.27926-6-wsa+renesas@sang-engineering.com> Content-type: text/plain; charset="utf-8" Content-language: en-GB Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGKsWRmVeSWpSXmKPExsWy7bCmga7yyl9RBtc3KFpc//Kc1WLrLWmL /sevmS3On9/AbrHp8TVWi48991gtLu+aw2ax9eU7JosZ5/cxWVw85Wrx79pGFotVu/4wWvSd c3fg9Xh/o5XdY+esu+wem1Z1snlsXlLv0bdlFaPHs4XrWTw+b5ILYI/isklJzcksSy3St0vg ynjR/Y69YB9vRc/uC2wNjKu5uxg5OSQETCQuHJ3B1MXIxSEksINR4szGw4wQzndGiWVXTwI5 HGBVD7v4IeIbGCVOdexjgXDuM0os6b/ADjJKWMBJ4vnaK8wgtohAkMTJN8dZQGxmgSnMEjdn JoPYbAKGEr1H+xhBbF4BO4k13z6B1bMIqEo0bdsAFhcViJBoev6THaJGUOLH5HtgczgF3CTW dexigpipKfHiyySo+eISx+7fZISw5SU2r3nLDHKchEA7u8T6r19ZIP50kfg45wwrhC0s8er4 FnaIz6QlLh21hQhXS3S2dbFD9LYwSvyZdokNImEtcfj4RVaIBXwS7772sEL08kp0tAlBmB4S j9epQFQ7Sjx9eIsdEj5XGSV6H29mm8AoNwvJO7OQvDALyQuzkLywgJFlFaNYakFxbnpqsWGB oV5xYm5xaV66XnJ+7iZG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7roKPO9C3O1v6/U2XCuMzRhmpytLCNrbprArtV3jmglSrDPZXeY zqbCclcr+vDy6pL1D0RtlmqFHWJRYinOSDTUYi4qTgQA5b6nHKACAAA= X-CMS-MailID: 20180515093219epcas1p28a5fa4be53b9ea0fd85e4726cf92f804 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180515093219epcas1p28a5fa4be53b9ea0fd85e4726cf92f804 X-RootMTR: 20180515093219epcas1p28a5fa4be53b9ea0fd85e4726cf92f804 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 On 04/19/2018 04:05 PM, 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 Acked-by: Sylwester Nawrocki It seems to be the only clk/samsung patch in the v4.18 queue, please feel free to apply it directly. > --- > > 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; -- Regards, Sylwester