Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2312384yba; Sat, 27 Apr 2019 20:52:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJMqhsdg6uCZVuGVX3wvOJL4lz5bkLa6zaapM4Hqvba7H9vhhFXeytjQ9odzrzqLyIMcDw X-Received: by 2002:a62:ae0f:: with SMTP id q15mr21528406pff.238.1556423574018; Sat, 27 Apr 2019 20:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556423574; cv=none; d=google.com; s=arc-20160816; b=JJ2luqiJzJu/6Jzfh5JKvpjJI4CYZ3ym5IdChKrUQreiv41d/T8cD0J43Xtsi+wrmm 6BS9nPyZcCG6uU3KOt9IVKpZWzGxRR9/3SpPMAa8BVuBpdJdL1XvIejy9HPr6cXHglQg y3wE7Ge+TCfyFc5mvvOerWllWiTa1PLi8PGDwwCBLRz440Aw87DSn2T3gG1/iKDHoXDy YlqnONkFGFcDvKMH0iFHcDKNB4lM1Ws6A/wfO+Y3Y8dFy2Jw2YXOIQnimtlplnXxNbxH LQVNfbMhUyTedUhXUxJp73tzRlJdKWtF3ftO0QiqsZaAPvtiamdTC6RqUe0j4TBUQ9Fd 80+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=96+XzOthL2qIKyh/HO9dtZ+SUH5HsntGL9QlYGmMjRM=; b=dPV24GlfMmDR899vqUfDfTEvTzf/VNZx0aO64O4RWgzwquhFQjWFjPinO0Glqwgq4L 2jGhFbuKfyapSALQYpNO1FYGJgR/NrXiEe3QJ6RbZQcA8HXmJhVdaqqktNoSPg4QLoWx 386mhTfK6ptc/7Qz+nOG/oCnZQg8ZX0p/guYzwnTuCTTnVnR/soGB0tMIVI9E8rQFpUi ahQqHQU8tVWzxjTpCVvpb3pRVWeX1SzuVXVOpSQ8oXLhrXyuhfRqQh6WM0UUBWK51SEZ 9C351rMZ6ybXW9nVQjdlbzDwQ+VaWRYny5O6pv9sjiZ4ZOlK43Ezv3Y+A6I42BuHJnFJ VsRw== 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 g17si20278613pge.27.2019.04.27.20.52.26; Sat, 27 Apr 2019 20:52:54 -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 S1726518AbfD1DvF (ORCPT + 99 others); Sat, 27 Apr 2019 23:51:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41850 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726426AbfD1DvE (ORCPT ); Sat, 27 Apr 2019 23:51:04 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5569FD64A00A3743F17F; Sun, 28 Apr 2019 11:51:02 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Sun, 28 Apr 2019 11:50:56 +0800 From: Kefeng Wang To: CC: Kefeng Wang , Vinod Koul , Subject: [PATCH next v2 2/2] dmaengine: nbpfaxi: Use dev_get_drvdata() Date: Sun, 28 Apr 2019 12:00:25 +0800 Message-ID: <20190428040025.142181-2-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190428040025.142181-1-wangkefeng.wang@huawei.com> References: <20190426115235.GX28103@vkoul-mobl> <20190428040025.142181-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using dev_get_drvdata directly. Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Signed-off-by: Kefeng Wang --- drivers/dma/nbpfaxi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif -- 2.20.1