Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1635789lqm; Fri, 3 May 2024 01:27:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYqMswp+Gm7GGBMnzJSkZjmniS0lOBf/3uf7lAcSQwgyrMv5GvBnEJl4KG2rTcSZFQjCXAp5KXFhQBtHkWbNs6+tNCllcVkATR74yHkQ== X-Google-Smtp-Source: AGHT+IEhVrqAixjS+EGR7BRljiW1K+ffzNMf4qjvA84sbaaMDMlPHCkBagW0RhTz8+z1+4D3iRHw X-Received: by 2002:a05:620a:b99:b0:78e:ddf8:da03 with SMTP id k25-20020a05620a0b9900b0078eddf8da03mr1877171qkh.72.1714724854583; Fri, 03 May 2024 01:27:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714724854; cv=pass; d=google.com; s=arc-20160816; b=AaNINFbg4ERdnL/5EAQtfCa5s2yQd4RMD7Bv+RGkbUk8dHClZ5vE/dkxJ4ug7dFjFk szJXkSauzEWvRxz5hdFa2MxxKLLNWJ/IPy4lDJvoSH+Dg6ZvV9PhoiJhHoCUeGIEyNY9 Bv7Pv5EQtPa1tRG8V6gmUncTzxc7sdY817joUPMAnqJ0S2yQHBdDMGwnxDj/p1Qq6GlY jvGmNU6JgKmVE6t12yNkV0UedNMBTRVg3T0yzAI82Ge6Q4Pha+VVGU0U8i9NUIx0doFs +SGk1Qq9u4lBc62Sz82a07EZLLSZpofkzkdK7OuKiSUH1/6Yrhci9hE7Pw6ASet0pFRC +I0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=T6a6lUh+GY188jtaldul0p+3R0GTrct1Qv8MGiWgRPU=; fh=1BeU8LPDtl+rdkmpMAcqeNCwXbIki2iCEwUBwUoOUic=; b=Msz+7DkR2Gms6JpGofDfCwPsDd0tTxdNR3c1W9OiNXuWZQATsntynuvceVjJIMfhZD Fco8Rrcynh9GubwVsagAFuWdfGY4YjbU/GL5LNWtWdivuoN7L5polIdlldHDSmhaKDRN 4gHcQ8CLfPaWbcw+C895dFit7uEpFl2h+UJlBXijBjbY6gfQfo4eBnKLelc5TVTHuZGI 8jw6HigJd7qhbYa5xxn/lWffDSC9gd1wCNFfjV1wOZXKRVLup3Nq4pR/UUqo88ce1EVH dOf4tl2QNvT39HxS/ixOBvbQpO6onJHPSlDnNf3SpHrMg2ZV3ezptKuZQGkJh0SptMW5 vjAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JVDTMsEF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-167380-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l16-20020a05620a0c1000b00790bfdf199csi2601717qki.499.2024.05.03.01.27.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167380-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JVDTMsEF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-167380-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167380-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 504041C221C9 for ; Fri, 3 May 2024 08:27:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F85B1494CE; Fri, 3 May 2024 08:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JVDTMsEF" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35D7E148853 for ; Fri, 3 May 2024 08:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714724847; cv=none; b=gNYKeYsfUxtBQTGVU4Bxos0238OmpINpLsWZJxFwZYS4G7pMX9KLwND6wy5DRAaJbzBLdmLmILwD9ODtkxC82pnh3wh56uxmjOS2r2pKlBQtwGPIviPCh1XdZ9GKqGsjjDq51CaImVtOhwhzcDZBYWs++62mONpN+NK9ZCF9moY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714724847; c=relaxed/simple; bh=IEfn+rA7KWKKyDU/jxXAsX8WmECqMPMDg0OqlVECxMk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QMatS+1zpU+wXPmLer83qMPF54HluF76aeJej+qhZoa65VbiYsDbOGXniTQ1m+2SrTU3i8iaZ4NtWZaQoMS/lE7LpFpKhwbmaBUfLH4BniI21VSy2PFzsePoai4uwGmHM4hSMZvU00qlukl8E4S+igzo5yMrv7VY8x3Oi5wqUPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JVDTMsEF; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-41bab13ca4eso47649455e9.1 for ; Fri, 03 May 2024 01:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714724843; x=1715329643; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T6a6lUh+GY188jtaldul0p+3R0GTrct1Qv8MGiWgRPU=; b=JVDTMsEFBPBEPLgHDzzuvQQNIXehnnl4nf/bvl0JHtaEAkfzoleCVcIUSVUHXYhKDe oUmP9dveq+rEAS2tWqDRs0R0bYUPMJrUkke+DJD9GtlqbNqg/ZeBz+fkyr4on6uP4nz/ 5ZYlfICLbCQxH8N4HjgRC2q2NTKP/Q7T/Nu/Dl9EQnURPaoMAbmNwnKC4o+q03k9QxA1 wRZMRB/mCco4rzJE/5ytImAyrA0nj6ldhHRCSdpJ0mkwd1Cj/jGVKGu6Jvv28xgShZU8 CyubNM0KpV9ZVApDUGxcNGju1xYX9n98/g3gFKecfHjsyvD7FIsb86M/WbvVdYXiHNPZ vTug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714724843; x=1715329643; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T6a6lUh+GY188jtaldul0p+3R0GTrct1Qv8MGiWgRPU=; b=ijGsGJRq2pYg7iWpyT9L2yk5QT5qHRovRxUcBoydl3W35nPCYgDqv2d3pLCa4xkC3y gTbhtqTPDTinXIascAcwM/y/pAMBge3v3dxjD0O0VCBk34okuNWAsWe4KgfM5Uhq+KxR fR9HCz3/vRf0z+4nWF2VBqzz+FYDwKr7A7uCd6pfCIM4JFx9KibuBGeeSxFh+URU1L8Y 9Co0COgGwEf1FvdRjLoZgzlpM/V+8yT82XnKJYwdJHFVz/xuA7Jzr59B11ZU84BeOPyC Ijmh895Im9SPRMDM5+x0wNxRzNsR2GH/zmQJ0QtXQrR8RzPq2H/PeICdxDKMxCAeBR1G qugA== X-Forwarded-Encrypted: i=1; AJvYcCVJ6ZxU4zg6E2bwkYC9B3J+3CtEnNuLeUADE7hSilANMZBXw/j1J8BBMQoHKNRAU9a1bhV7709UjLGc1VfoQ4F8UzL3GFZpHyWheUfE X-Gm-Message-State: AOJu0Yx4EXgGrRvrEIldBx1Vo2zX137EFmjUGY7P0CQJNZXYNjrQyMPx 51TUXLzFAwbr+djyILX+yuFmf9gmGbQiYgjuygN4Vz4SJo9l+faTwgr2r7SsIjg= X-Received: by 2002:a05:600c:4505:b0:41a:a08f:2696 with SMTP id t5-20020a05600c450500b0041aa08f2696mr1673113wmo.12.1714724843540; Fri, 03 May 2024 01:27:23 -0700 (PDT) Received: from ta2.c.googlers.com.com (203.75.199.104.bc.googleusercontent.com. [104.199.75.203]) by smtp.gmail.com with ESMTPSA id l8-20020a05600c4f0800b0041bfa349cadsm8488050wmq.16.2024.05.03.01.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:27:23 -0700 (PDT) From: Tudor Ambarus To: m.szyprowski@samsung.com, joro@8bytes.org Cc: will@kernel.org, robin.murphy@arm.com, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Tudor Ambarus Subject: [PATCH] iommu/exynos: trivial use of local dev variable Date: Fri, 3 May 2024 08:27:20 +0000 Message-ID: <20240503082720.966423-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit exynos_sysmmu_probe() defines: struct device *dev = &pdev->dev; then initializes: data->sysmmu = dev; Replace further &pdev->dev and data->sysmmu use with dev. Signed-off-by: Tudor Ambarus --- drivers/iommu/exynos-iommu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index d98c9161948a..447cf0d07625 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -774,8 +774,7 @@ static int exynos_sysmmu_probe(struct platform_device *pdev) __sysmmu_get_version(data); - ret = iommu_device_sysfs_add(&data->iommu, &pdev->dev, NULL, - dev_name(data->sysmmu)); + ret = iommu_device_sysfs_add(&data->iommu, dev, NULL, dev_name(dev)); if (ret) return ret; @@ -806,7 +805,7 @@ static int exynos_sysmmu_probe(struct platform_device *pdev) * dma mapping operations on iommu page tables (cpu cache flush) */ if (!dma_dev) - dma_dev = &pdev->dev; + dma_dev = dev; pm_runtime_enable(dev); -- 2.45.0.rc1.225.g2a3ae87e7f-goog