Received: by 10.192.165.156 with SMTP id m28csp777791imm; Thu, 19 Apr 2018 07:25:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+NN49B/lQY75svMWX+KUckN27bkb801nhpaBmvrO717j5Sxl21mLWprJqKWajeJo75CgyV X-Received: by 10.101.98.194 with SMTP id m2mr56929pgv.164.1524147925870; Thu, 19 Apr 2018 07:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524147925; cv=none; d=google.com; s=arc-20160816; b=al5qUM2tCZRVvos0cCZZdwoykNVMuUFBBCY+VatLmpPEXmxJ4Je15uKY5VsgPt4WHT WiAnl0xRO0Z9qi3IVsQOzOhmfU0iyXUrciGFHsp8OWbBsLalZcV5/83vZSwMrVJrskmV lziheUSG6vBGSUJOIbacI2T8gZaxQ6qo9DVaY2632zb+WU1UQORq1Ru3MgK5xGezT9+3 b881pXT7EVJglOJEOEpMSbjHb0hPI/uPBAzBMCnW55+liAfiGVQWBjJFJsSdKfA7+Bom VxwENgx5Pl2KEIJ9kbsgH9QAf4UZxzTzDHohRr6jsNKBEiVumYBnKYeFqEHJ2coYOwSw VFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=oZS2DEooKBnnukNP5xMd54miaAE8/pbnRq9Y1tuKjKQ=; b=mQ3w1YLU4/0kH8SbWBhknKYvcwyHSnboopOKQn/jex3o05+PfLuMYlJ8M1Ov78dmNU rqQv924nMXq2V8polFpLdFXbru4TjBe1Ezgg0ARJL/66L1/TL6qd6hlYQD4OsbOFLOsp VmBAHyTp/bd64ghv7uluxsVNVGfdAHP8PnXA48B7JyFqA1Tam3ZXdS3t6lnoSPTp0A4z tUJfYZL2rdVBDunNQA/dN0EnM3a3KaxCkI7deOnhVeCjgfuiGiE3swG/CwpajW/Tx0XX TlFVl7LT/1XnvL1dwneGXKwMNn9ihQu8fYVsn4mb8fSlkdH+/QtwTy7icy4EK+Aw4Hag SbWA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r59-v6si3584433plb.218.2018.04.19.07.25.12; Thu, 19 Apr 2018 07:25:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306AbeDSOGz (ORCPT + 99 others); Thu, 19 Apr 2018 10:06:55 -0400 Received: from sauhun.de ([88.99.104.3]:45212 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752337AbeDSOGu (ORCPT ); Thu, 19 Apr 2018 10:06:50 -0400 Received: from localhost (unknown [145.253.130.2]) by pokefinder.org (Postfix) with ESMTPSA id A28C23139AD; Thu, 19 Apr 2018 16:06:47 +0200 (CEST) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, kernel-janitors@vger.kernel.org, Wolfram Sang , Kukjin Kim , Krzysztof Kozlowski , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 01/61] ARM: plat-samsung: simplify getting .drvdata Date: Thu, 19 Apr 2018 16:05:31 +0200 Message-Id: <20180419140641.27926-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> References: <20180419140641.27926-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. arch/arm/plat-samsung/adc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c index 42bac8d5ab5d..2da35735fa38 100644 --- a/arch/arm/plat-samsung/adc.c +++ b/arch/arm/plat-samsung/adc.c @@ -413,8 +413,7 @@ static int s3c_adc_remove(struct platform_device *pdev) #ifdef CONFIG_PM static int s3c_adc_suspend(struct device *dev) { - struct platform_device *pdev = to_platform_device(dev); - struct adc_device *adc = platform_get_drvdata(pdev); + struct adc_device *adc = dev_get_drvdata(dev); unsigned long flags; u32 con; -- 2.11.0