Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp237002pxu; Fri, 4 Dec 2020 01:54:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5CxQXjko5Z1S7hGoVuQASDlKr90sZqs2Li8IweyFQ91vVAcWAB9TnMErPRoXnADpq96fX X-Received: by 2002:a17:906:229a:: with SMTP id p26mr6381720eja.291.1607075692911; Fri, 04 Dec 2020 01:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607075692; cv=none; d=google.com; s=arc-20160816; b=SwTPFjfwtxF+5NW01l6R8+cXeSwe8JPDRy33zVob0mKubINxuygH72f+yhu+VYSS2l WpDGzhNdT9vi/pCRGgEPz7QqwBewtvDdBRDZNycQylwCqQIFqos0KeDfABfOPGy19Omx vrkuynSsqCgYhptPhjwhrG869ThuARc9MV1IGyKDcc0xo45tDylxFLKrCnc8wsdfK4Mz lbK8fqEJU0tbXDkZirVe7kvyCSOfrVN24ZYcqr+BXEzl2q7l9DgPkyzH2HnlzaSMJ26N d19hrUC+Os2Cnr3bxiPm7opree1tfdjA0RMwhwr6iuGGjnOiidBlEP+tbZPtFpr+4E6T TKPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=eLemHkE1CnWowMhjdsAg5krzT2dlfptCKZuqxkmAFD4=; b=xOzOxfUaDGLRVE9muOyxbmCO5anENSfAV14M+gPzxMO/Rc/n7ABaCPJblc3otUUzcV PBjJSSHS31jncTaHUkn1L5LQyFzEsWiYune0hn5AoB6burDyQysfwkWPUOsPG3s38tFf W79x0rbZyxt5FMt0UX9yf1BQ0tXpSLum/yAjZUlkONnVRz/6o/8vbVX4kIzvUuSnXzwm QhYnkSRj3QuzwQMfaluLP0lmnIPQYdsJuyQW+RcyOdmcya9SqmaIp1Av05cJBwavf3B2 nfbzzAVqEHm+EhHYfrRYV1OyjNyj+jK9XDDQdRkrBHj2XLgX4APoW1boIx1TRK0uK5Fr oFKw== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt13si1066555ejb.98.2020.12.04.01.54.30; Fri, 04 Dec 2020 01:54:52 -0800 (PST) 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387884AbgLDJvM (ORCPT + 99 others); Fri, 4 Dec 2020 04:51:12 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:34563 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387866AbgLDJvL (ORCPT ); Fri, 4 Dec 2020 04:51:11 -0500 X-UUID: 4080438f15a14f628406f14712027c6b-20201204 X-UUID: 4080438f15a14f628406f14712027c6b-20201204 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1465791880; Fri, 04 Dec 2020 17:50:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Dec 2020 17:50:07 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 4 Dec 2020 17:50:06 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 3/8] scsi: ufs-cdns: Use phy_initialization helper Date: Fri, 4 Dec 2020 17:50:02 +0800 Message-ID: <20201204095007.20639-4-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201204095007.20639-1-stanley.chu@mediatek.com> References: <20201204095007.20639-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 954FA1CA6C6EB9F1CCDA633874490B3712B194BA30CE146A07AA8891CDB3AE642000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use phy_initialization helper instead of direct function invoking. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/cdns-pltfrm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/cdns-pltfrm.c b/drivers/scsi/ufs/cdns-pltfrm.c index da065a259f6e..149391faa19c 100644 --- a/drivers/scsi/ufs/cdns-pltfrm.c +++ b/drivers/scsi/ufs/cdns-pltfrm.c @@ -221,8 +221,7 @@ static int cdns_ufs_init(struct ufs_hba *hba) return -ENOMEM; ufshcd_set_variant(hba, host); - if (hba->vops && hba->vops->phy_initialization) - status = hba->vops->phy_initialization(hba); + status = ufshcd_vops_phy_initialization(hba); return status; } -- 2.18.0