From patchwork Fri May 3 08:27:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13652498 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99834C4345F for ; Fri, 3 May 2024 08:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fJAWqOHOz9MjvyYaIHsO7oPR3lLx7XZHc9d/f5LbLzA=; b=ZDVRzNqyfYk0GE lIq9oDzfcc8mZluqEyBc23IoJd1wlAS4/oHF0BpoKTb0a+J8j2/CD6RDjb7V/XTSai0Y1MFf14Xu3 TdAMKnj39MEOq/Mnnc3ZVB/fEn47QhdGnW0mqg/LaJWkpNqXsAJRHhwwYE7C21JqOirRXKSZkzD2g NW7J3vUM6vxjW8kNHNxCC8AJJieX9JUm0hWCIrVKvbub3VytxRLgnDMosduN97WsYu7V1yfoKRQkf fGabHyDpkrVeqmDAAx4k5Rd6RxXxjkRCYLhM7Bhnuk6h3PuQuUHjwuH9fzp37FhgXi+Ef53N8MQR6 U/1Y+zC7XjCdy42/tBjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2oGO-0000000Fe27-0Yco; Fri, 03 May 2024 08:27:28 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2oGL-0000000Fe1L-2cd1 for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2024 08:27:27 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-41adf155cffso61169075e9.2 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=lists.infradead.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=jJA95SQOA9AoUFsKq1pjRWNkU4S91LCvyFMC0vLqiuyVgiyaufGC6Tlg9tJQPczb2W VT3iMhVnpMHpuCIvK4e4FMMA48vMyvxclohA0HwyaZJuBQht0gHTmlwrwcXYATzLWHQQ PtxO3tG+zqfaoo4ZOC1xg5r6U3JURDxEKUgX1e5smdeuLeYsq6lgUE/ae8YE/f7/fn5Q 4M6rvqTDA5nXCHpz56miMzEAJY54s9SbTeiIJF7JAAgVWxJjkTb6AiYQTYKI5xZtaWwn r2MKpcx096KoYFlSQybOE0aZpJBjpwYeoJHXGsiO5qksbChUe/p6GpB2xiNh0FGyybea cFrg== 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=wB4FKQttgAhp6SAOUgYT0oeDYKmbUq931EORvGTJcSGWfG7JBRw0RFfBBCXU1FE550 +iTVPUjlg5S2oGIDVUJwKpgAC8YmlFdZ7C7lB3/jI523ZSRMC/9RFEtDP4QAkNKlbWQn vANOvrBlr+Lz9Q3hFcqaiu+90yDD2kcPS0hlpeT9NEqcw/EAPAZtU5Jy0VWEtQ0KGwOv r1Qj7gDXXS5y+GFIuY1Qrj5h3HB57EdR7I66qHsEMQjbrEufdwWXKYL9IRqbI5YsRhj5 kf7Z+4nBpZH2JRTHhXMogugpTawDyzxWmGwoGQ3npv6jIahMle3zoeoO3+IcMkP1PSDE RcCA== X-Forwarded-Encrypted: i=1; AJvYcCVhNVOZ4ZCuWbYgu1gUf4UkCc2bq416ne8X2Fe/TXgzxdfEh6ix4s7JfXY0Ss+2ZrgtbeDQ6EllEAqaDgNsu6zGYsF+zISRPJwRZnmEAmdlfHR8XnQ= X-Gm-Message-State: AOJu0YyYnNIVwo0+X12eXduTEsP+nVYL5HRVUxiXMVa1cd70rZA7nTre rkOfzELLqrVwTjqwjzU4mBnJJL7k4Wf1LN/hpnRx6glz3OpI4FJxCI+TVagNyZw= X-Google-Smtp-Source: AGHT+IH+dWf8de6Y0dzA0LihElBWCS6qe1eDpqaJVWGQWI7rqiM4itGea69KiJ4DSak/Q8qdGVJp/Q== 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 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240503_012725_704241_6AD0E47C X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);