Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp865114pxu; Fri, 4 Dec 2020 18:43:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmZk4r6RAvwpvLZMwNxmhoM4A4DbdLYIoXzPRYWVSKxRHnlia+uEuYbGsjhkmQ1yT92d/N X-Received: by 2002:a50:e786:: with SMTP id b6mr10083573edn.242.1607136194000; Fri, 04 Dec 2020 18:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607136193; cv=none; d=google.com; s=arc-20160816; b=UqNNvfS4j0qUBVwlsA84NjFfpFy1FaaZqB4MSPVKQLjsnglhLCKa99OgULaHqzPIFg AZXmPGH2ZOJdUO8BNPCz2eH7LCkD8f4Y8UiIUtEBiZ28NE2mF8KLuU532ilfx3EWwRsl GpLnA4APiu/mmW5pKzwZa1Wd7cj5TV+xShmoHhz9vkg9ePqYNFjyMfoCgw/ZChpdJCvW KY554f5mtVeTh3dezDbFhXV5QXDZOdoO+Ez6ZbmkTaQh9ctzbOKENzZGAVrkuEoMJmEe AyCx2cwS+Y8IbzSr3WbV50+t666tv3vrkIyU6+iahwApwJzTbQkrWuPIooHKTugd6qXj KRGw== 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=Gxxvqx/CwlC7mMnFq7FzQQH7pBlDIKPwv921h9fU1pcbXPaP5YgEJ9sQYUdhISOpkR bqAPrBFWioUdtoPwmk4c2rIkYWMm3+VU8u4va3i9qGsZw49gd1r3w5ciF9KW2fczUjNS 3b0jFVsxhpWub6uVfS/f6Zu5yIXLWA7rVcbx56ms8+WJzocMLaSMpAi0JkouXjjCgviM 508cTOvkIPfDGCeMH6iHTU00WHYK4T4onKQ5nBjC8cZ52+vuKdKUE3ovRg8pw1ats8vU QhD+nvwmC/A2nYq+x2cipWwGYFhvsnQ1Vq+5jyr3S8fbw20jM/09WLHjlx1pagp1A3xT BnVA== 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 cf6si778035edb.557.2020.12.04.18.42.51; Fri, 04 Dec 2020 18:43:13 -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 S1727614AbgLECk0 (ORCPT + 99 others); Fri, 4 Dec 2020 21:40:26 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43895 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726151AbgLECk0 (ORCPT ); Fri, 4 Dec 2020 21:40:26 -0500 X-UUID: 3799b712c6a84c3fa4b48be66fdda0bb-20201205 X-UUID: 3799b712c6a84c3fa4b48be66fdda0bb-20201205 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 1473967935; Sat, 05 Dec 2020 10:39:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Dec 2020 10:39:36 +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; Sat, 5 Dec 2020 10:39:35 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 3/8] scsi: ufs-cdns: Use phy_initialization helper Date: Sat, 5 Dec 2020 10:39:33 +0800 Message-ID: <20201205023938.13848-4-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201205023938.13848-1-stanley.chu@mediatek.com> References: <20201205023938.13848-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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