Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2313131yba; Sat, 27 Apr 2019 20:54:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOWbPwT50+W7UjkXZ2kQIX6W8DYL6umBOraHqoeHxDJtXi0bUvRWNU8A7GHcrJVkvCs929 X-Received: by 2002:a63:514f:: with SMTP id r15mr13988891pgl.450.1556423663542; Sat, 27 Apr 2019 20:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556423663; cv=none; d=google.com; s=arc-20160816; b=m7620OX6xCSG6nKlmQbQYI1gs6L5FLxhal0xzEq1FDk1+49x/bDX6zy1LwT2AmBaT8 Sv51aVnykqeOmiu397sFGdR7swep/af2nCxCWX39cysjFFMoatGBJie/KrHExA78kMZk OVIdpmJEgsUkoJ0L7eQ420QMCe3twibiE1ST4NetMCyzuf+D8bN8cFlswhieUKYYdRDC 0dmqhruTNb3nGtKfXTH/9Qnd1qb77DZx67ZvusQAcabKDyaUQBvK77Mw+we8oePMoZCR cyRoQ/5n37D7EzMqOZLMG3DUuTBtZ+QDqRHM1XoYBsJhuykT94gJl9EakyOk4eYlpw9f GSGA== 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=UrzQ7D+sGdd5R+HRjYxNZ0TbjHMMS5TVe8kyMQyqI10=; b=NB0O3Q3kO9/1c7VHZ2UfUNkMjG2yNOrArHvlh59xboMWaqzFFfnz/28De9zaEHbyp+ JvYQwjUOiZJQWcRLr32L8fg8z8oLMjUJYorei3+z3GlX8MEwjL5cgX2DaBNRUm7OyHXb zQDXtW20MtUQoe7N4gKOTZoWia1enqoZwFU2/i99SSwac/UwP5IUvdwvcdxY6SN/yYE4 Zm5W9kg1J1UrzH6M4Gyu3AwSA8nGwUV0nrsqApzC2IgA3fIgXgVAKZ+Kq5gh4X0karI9 ddCE8YD4sU9uDEKQLenCY2NIqWbddiAbLvzhuQDYlcX/I4A1wnQ4eSVHmcCtElWFrI/t MCiw== 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.54.08; Sat, 27 Apr 2019 20:54:23 -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 S1726485AbfD1DvF (ORCPT + 99 others); Sat, 27 Apr 2019 23:51:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41852 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726291AbfD1DvE (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 59107FC5BA5E2B3058D3; 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:55 +0800 From: Kefeng Wang To: CC: Kefeng Wang , Vinod Koul , Subject: [PATCH next v2 1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata() Date: Sun, 28 Apr 2019 12:00:24 +0800 Message-ID: <20190428040025.142181-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190426115235.GX28103@vkoul-mobl> References: <20190426115235.GX28103@vkoul-mobl> 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/bcm-sba-raid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index 72878ac5c78d..fa81d0177765 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -1459,8 +1459,7 @@ static void sba_receive_message(struct mbox_client *cl, void *msg) static int sba_debugfs_stats_show(struct seq_file *file, void *offset) { - struct platform_device *pdev = to_platform_device(file->private); - struct sba_device *sba = platform_get_drvdata(pdev); + struct sba_device *sba = dev_get_drvdata(file->private); /* Write stats in file */ sba_write_stats_in_seqfile(sba, file); -- 2.20.1