Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp203947ybh; Tue, 14 Jul 2020 23:06:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNxGzaQUCMiCHfVDLB1eEp0lUWEBJAJl8G9mLY54KkTww2J5kHV9zAd/niF7fGbyXtdKlW X-Received: by 2002:a50:c88d:: with SMTP id d13mr8131595edh.104.1594793195089; Tue, 14 Jul 2020 23:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594793195; cv=none; d=google.com; s=arc-20160816; b=xuIbHpJck1LUCJo0qN2QkzB7wIjeDDqxGPNfSTpOhbX95EjYavEEg/LzyMJDRuYBEC mnb2IUGWeAVKDHAf7VoJ/0OXzI0PL04csfb3siH4VP5spxwKix9ITmUMt8XTo5JPGwUy z6ZwFey/ko91lIZxdBTh/xqIM7JpoI+B9rD2Lb9YwMz4fWJ10iD5WkwQX3GVkhNRm2C3 3A3MRxn/ADwF/jFXl0+Ur+wpJap9i5LzfAfeosKE9bkMr9D1ZpMYSMjrNhTejXw7gqCZ BtedcWVKBfWR045Bu5QgwkeCEdJfd/76MbLGXacSa+fsNMN2GXry1KsmBuJ7EE4tMju+ 5cBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kbDnO//3NLZ6DJKTEr4xD9KJt4+ZIZdVBg9XeYIC2jQ=; b=AnOtkMBXYAnsZk+3bcMCvoVsKYZReiKaua8BAKEb6NzwOX0o1h9MK+fD+kPSHN9vF8 wgUPutDZp0ZAVA/Hi5rqQR7cXy4E54QTFWUK/5V7JoP/jFz7W2/DV2Vkmm9Z2vZbKic5 Kb2HA+GaSrPKVqN08e/mFev6FCxsLVZyf+10mz01A/G2DicBchPH/d45FnoIjlcuNdlp SCb0NTBf/pC+lerqBGHq7dAiqtj5Wx7X47Khp2Silv+4L7NcydL7TDEpWXzQQlMujzQA xXDNbuKwXrlRYBFPXSWWHvq+zNi3/WSN+eExsUESBSu3MXFuDkXotLdwPZqdPmz/oqG1 n8cQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si634182edq.238.2020.07.14.23.06.12; Tue, 14 Jul 2020 23:06:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbgGOF06 (ORCPT + 99 others); Wed, 15 Jul 2020 01:26:58 -0400 Received: from mail.loongson.cn ([114.242.206.163]:48595 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726928AbgGOF04 (ORCPT ); Wed, 15 Jul 2020 01:26:56 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9CxCdWYkw5fPuQEAA--.6136S2; Wed, 15 Jul 2020 13:26:48 +0800 (CST) From: Qing Zhang To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] spi: omap-uwire: Use clk_prepare_enable and clk_disable_unprepare Date: Wed, 15 Jul 2020 13:26:46 +0800 Message-Id: <1594790807-32319-1-git-send-email-zhangqing@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9CxCdWYkw5fPuQEAA--.6136S2 X-Coremail-Antispam: 1UD129KBjvdXoWrurWxZw4rtw4rZF47CFW7Jwb_yoWDuwb_uF 4DWrs7Gr4Y9rsak3W2gwnxA34I9r1qvFn2g34IqFWfJry2vwn8CrZ0qrsxCr1rZw4rAFnx Ar1kJ34akw1fGjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2AYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I 8E87Iv6xkF7I0E14v26F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Gr0_Cr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkIecxEwVAFwVW8WwCF04k2 0xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI 8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41l IxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIx AIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvE x4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jwCztUUUUU= X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-omap-uwire.c. Signed-off-by: Qing Zhang --- v2: -Modify the commit message -Split into two patches drivers/spi/spi-omap-uwire.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c index ce8dbdb..71402f7 100644 --- a/drivers/spi/spi-omap-uwire.c +++ b/drivers/spi/spi-omap-uwire.c @@ -443,7 +443,7 @@ static void uwire_cleanup(struct spi_device *spi) static void uwire_off(struct uwire_spi *uwire) { uwire_write_reg(UWIRE_SR3, 0); - clk_disable(uwire->ck); + clk_disable_unprepare(uwire->ck); spi_master_put(uwire->bitbang.master); } @@ -475,7 +475,7 @@ static int uwire_probe(struct platform_device *pdev) spi_master_put(master); return status; } - clk_enable(uwire->ck); + clk_prepare_enable(uwire->ck); if (cpu_is_omap7xx()) uwire_idx_shift = 1; -- 2.1.0