Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp322028imm; Thu, 2 Aug 2018 20:05:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcs5sqTwukPzX6vxDNF7zuJgBHwNbY7Bu78yFFHawRTHQbPCLDFvgvC/Rln7UtEjT2TJxv4 X-Received: by 2002:a63:555:: with SMTP id 82-v6mr1938400pgf.25.1533265551888; Thu, 02 Aug 2018 20:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533265551; cv=none; d=google.com; s=arc-20160816; b=DGkBO7wf/sPLCQTSNPtQC7PLmGcZcmIZ3Ut75799JWmcMdIGP2pLQhqYC7j2bLlkuw 8a45Tjp8N6xhcXoJB/5uytPmCqxYWQPmnE46sKj3uRfPaHO/OPgyMMichF0I0ILZB8tU 0+PHA8TXau31Q7ymLS2fcg2pL374H6m7OI2TOJhybyzSOTCnKcZ+ZQU1vX41xjY9Xw/E hROYAHPkc0pJ/G/iR4BlNoC3TUquTnQme9jQrWpQTRAZgi1zorhTbGKhEvcHNaKPBqm8 0WHbUDk6n94p6+8e1sxrNgu2A2o9zqT60pdDSih1TkoOemcDgl7XeC3Fno5CcCVhhQFF ec9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=zsbWhGv82jVovsG2EQSDqf2dCuanJawqRbZlFO/d5FA=; b=GcasjfnojK/AgHzFhRdVYAxKTGbkuhuwfVNa4HxrKmQqNEp7qMo+jmaXVU8cWmBtwr O2rWQ5e3//p8mfSPLyCm3pZc/bwT4bvI62q81AZIW48HfWK92k4ivWOq6vQ0oNxB0tlI Nek3BPVNQ4FI0EMS8t/oH8YIZFlxRcFNBcmhyXyeviOl2+S1Ymn6e4pwMby7wNrhsYcs mTRXxWdVIeHrx+frSJ0NwxzhQdndYCVDwRTk12cbysC46ge+3Ptb4e6ql2Dg3F8og7lX LPCLJIkIhEGLxuBzIavcCo9usj/fwS1kFRX3PWq/3bsVzjPTxZL4cKVEY9lv5qVxtuSF pRXg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n128-v6si3914822pfn.90.2018.08.02.20.05.37; Thu, 02 Aug 2018 20:05:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729814AbeHCE6c (ORCPT + 99 others); Fri, 3 Aug 2018 00:58:32 -0400 Received: from mga01.intel.com ([192.55.52.88]:19289 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbeHCE6b (ORCPT ); Fri, 3 Aug 2018 00:58:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2018 20:04:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,437,1526367600"; d="scan'208";a="251328318" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by fmsmga006.fm.intel.com with ESMTP; 02 Aug 2018 20:04:21 -0700 From: Songjun Wu To: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Songjun Wu , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH v2 13/18] serial: intel: Replace clk_enable/clk_disable with clk generic API Date: Fri, 3 Aug 2018 11:02:32 +0800 Message-Id: <20180803030237.3366-14-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803030237.3366-1-songjun.wu@linux.intel.com> References: <20180803030237.3366-1-songjun.wu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The clk driver has introduced new clock APIs that replace the existing clk_enable and clk_disable. -clk_enable() APIs is replaced with clk_prepare_enable(). -clk_disable() API is replaced with clk_disable_unprepare(). Signed-off-by: Songjun Wu --- Changes in v2: None drivers/tty/serial/lantiq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c index 28086d52e980..36479d66fb7c 100644 --- a/drivers/tty/serial/lantiq.c +++ b/drivers/tty/serial/lantiq.c @@ -309,7 +309,7 @@ lqasc_startup(struct uart_port *port) int retval; if (!IS_ERR(ltq_port->clk)) - clk_enable(ltq_port->clk); + clk_prepare_enable(ltq_port->clk); port->uartclk = clk_get_rate(ltq_port->freqclk); asc_update_bits(ASCCLC_DISS | ASCCLC_RMCMASK, (1 << ASCCLC_RMCOFFSET), @@ -377,7 +377,7 @@ lqasc_shutdown(struct uart_port *port) asc_update_bits(ASCTXFCON_TXFEN, ASCTXFCON_TXFFLU, port->membase + LTQ_ASC_TXFCON); if (!IS_ERR(ltq_port->clk)) - clk_disable(ltq_port->clk); + clk_disable_unprepare(ltq_port->clk); } static void @@ -631,7 +631,7 @@ lqasc_console_setup(struct console *co, char *options) port = <q_port->port; if (!IS_ERR(ltq_port->clk)) - clk_enable(ltq_port->clk); + clk_prepare_enable(ltq_port->clk); port->uartclk = clk_get_rate(ltq_port->freqclk); -- 2.11.0