Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2383824imm; Mon, 24 Sep 2018 03:31:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63oYILbr6/YeMBQY35ewLaVDzk5qlabXAeL2/fFSxueTRpbTVdOAU/M58pkKfkcPeHCAlS5 X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr10195899plb.25.1537785082712; Mon, 24 Sep 2018 03:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537785082; cv=none; d=google.com; s=arc-20160816; b=GNxQEQ5/qEcOijk9b9UOMsmpa+P6JqrA2NqKlVh8GJGbJ1EG7peWxj7ucczZvLX98w EQj9PbLz21ohwGBMPM6xEK1iwC7WfxA6hWSC4XLRcrWMSawolE3agsiOBLJtkbkmaCC1 ofNCkM+VLEbX7GT0lPFDWU+hiNUY18gNa2YrOb5pNa/26qpZJK3XhlCf/O88wc0RVOc5 l9kYxFKCMR6NSHi0uwuq/4m6vPca0EX1f/8q45LLazwE/oJSGY8+QRsK+ErwTv1i9B2X dmjBPr8QMKc5Xk7pitMtNnHny7b1Bz96Dj+srxDYOVVq+07C3EuoJz20nElbwG6cww9n Ns1w== 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; bh=md7qhgbsoJTP5cDIzAKIUPnhXaj/+o2+6d7JO2IfPCc=; b=T8Mq5XeYNHLaCOz1YNLE4tYBmAc81RMzRXTe7RCSOpusVfmxGhUvg0oCBd5xBX3n6T YMYP22XehF7lkZnoBBvor4t9jq/GLSt8jFFBYXPhvU8RpNyC/acEGbx1hst8UjRRk0Ky iBQQ8FUj8z2kcuZrKLzpkvQBZFAXytwLU+RWWVhGsBn8PNc3BCNNKWgs2YCoy1e7u44G mSZlD8nUKsBsOuAa/7SYxQA6KdfXQ6w+ocGrnn4WrztPdWkQDwfzWdFkj75Ar3uYLU8E jRaQekokI6ko2lHuLBRadmZFXlYCdLlypqK22AA8D83B24WSV5UxDRdL/PrHrBHgWwQ6 9juA== 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 t7-v6si34685294pgh.307.2018.09.24.03.31.07; Mon, 24 Sep 2018 03:31:22 -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 S1727944AbeIXQcO (ORCPT + 99 others); Mon, 24 Sep 2018 12:32:14 -0400 Received: from mga03.intel.com ([134.134.136.65]:25107 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbeIXQcO (ORCPT ); Mon, 24 Sep 2018 12:32:14 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2018 03:30:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,297,1534834800"; d="scan'208";a="235419606" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga004.jf.intel.com with ESMTP; 24 Sep 2018 03:28:50 -0700 From: Songjun Wu To: yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, hauke.mehrtens@intel.com Cc: Songjun Wu , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jiri Slaby Subject: [PATCH 08/14] serial: lantiq: Replace clk_enable/clk_disable with clk generic API Date: Mon, 24 Sep 2018 18:27:57 +0800 Message-Id: <20180924102803.30263-9-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180924102803.30263-1-songjun.wu@linux.intel.com> References: <20180924102803.30263-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 --- 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 4acdbdf8fe7a..34b1ef3c12ce 100644 --- a/drivers/tty/serial/lantiq.c +++ b/drivers/tty/serial/lantiq.c @@ -308,7 +308,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), @@ -376,7 +376,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 @@ -630,7 +630,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