Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2104119pxb; Mon, 20 Sep 2021 12:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1UsmDcZMm1+LoGeMb0mf4KEpwZZj5XuQSBWxzM3kJKOshRr6YG1lErDtVNkSowXbCoekb X-Received: by 2002:a17:906:dbd8:: with SMTP id yc24mr29703961ejb.221.1632165664368; Mon, 20 Sep 2021 12:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632165664; cv=none; d=google.com; s=arc-20160816; b=NselI94aijdcScIp3FJhmi2mPyoeQVQl4m9uOh6yN+M/rdA3DJq3O7afN58h/rBmGF 2b/Qv+XwwowO5U6lEWpm9R1hoR70aeZqb4mR5FvDDeQw2XNY63ax0jymubQUQergg/kK bU4BKbv9OORYBWW4nvHkt79Tqlkn/Zo08+wQoqkXdqwpXMsK3ZyjVc5p8es8EhTIyc+C mDsuOAQU7KGn9sNMlu56nuOmFrbFk2UphYtN9i/7Gi8kWc+8aWipox7ZZmO5r/ft4S0C a0CTEjDcCimqygbp7h1aPnJMFkPnixBu++fulph7F49AYV7l/r4YtEn53xSCbT/kANV/ Q+0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dvVg/RIkS+5x53jwtXpVtzU7/I9KOVlJ+D+4XQAraRo=; b=Y9b+R4V28ToYNkbEIVbk5Kn0YGGbL32ZUcuQDqqY8BcjVfHswqkZjEUfYwJ0Q6f4EP 5DoSo0bdI2hz0mOY3snskVv4MhKBsCiTitkH9ZCYBcs54bU6gNXGKVbME31+8V1EHu3y fhCWEsc+Llk1avE7P7QycutdzbMXVtG51ZbtLNVGVyMasCnqJkr2718mT69tajkPBjF4 Oimg69t1ZWcfjXG17iNzE59cbWh9mEkrJLLUWHbB6GHRU95CTDoEhKI7qq7iM+pmBMs4 AqGAFGb0Uq5tNB3LjNqMVnE1LRj3cfvEh1xsJ2bHZzuBWjEThw3LcuBbCkDOo9bXXGi9 QpRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si15986899ejm.652.2021.09.20.12.20.26; Mon, 20 Sep 2021 12:21:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234926AbhITLII (ORCPT + 99 others); Mon, 20 Sep 2021 07:08:08 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34670 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbhITLII (ORCPT ); Mon, 20 Sep 2021 07:08:08 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 713FD1F42BA9 Date: Mon, 20 Sep 2021 07:06:34 -0400 From: Alyssa Rosenzweig To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 5/9] drm/panfrost: simplify getting .driver_data Message-ID: References: <20210920090522.23784-1-wsa+renesas@sang-engineering.com> <20210920090522.23784-6-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210920090522.23784-6-wsa+renesas@sang-engineering.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Alyssa Rosenzweig > index bd9b7be63b0f..fd4309209088 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_device.c > +++ b/drivers/gpu/drm/panfrost/panfrost_device.c > @@ -400,8 +400,7 @@ void panfrost_device_reset(struct panfrost_device *pfdev) > #ifdef CONFIG_PM > int panfrost_device_resume(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct panfrost_device *pfdev = platform_get_drvdata(pdev); > + struct panfrost_device *pfdev = dev_get_drvdata(dev); > > panfrost_device_reset(pfdev); > panfrost_devfreq_resume(pfdev); > @@ -411,8 +410,7 @@ int panfrost_device_resume(struct device *dev) > > int panfrost_device_suspend(struct device *dev) > { > - struct platform_device *pdev = to_platform_device(dev); > - struct panfrost_device *pfdev = platform_get_drvdata(pdev); > + struct panfrost_device *pfdev = dev_get_drvdata(dev); > > if (!panfrost_job_is_idle(pfdev)) > return -EBUSY; > -- > 2.30.2 >