From patchwork Mon Jun 30 19:12:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 4453951 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3BB7B9F358 for ; Mon, 30 Jun 2014 19:14:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 496572038E for ; Mon, 30 Jun 2014 19:14:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DD3220382 for ; Mon, 30 Jun 2014 19:14:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756226AbaF3TOh (ORCPT ); Mon, 30 Jun 2014 15:14:37 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:59465 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756160AbaF3TOh (ORCPT ); Mon, 30 Jun 2014 15:14:37 -0400 Received: by mail-wi0-f174.google.com with SMTP id bs8so6622548wib.13 for ; Mon, 30 Jun 2014 12:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=LRToSCFr8nlyGUX1nFm0ZDeLzUH0ln2Ag4WAjGrY35E=; b=inAmQi1l76kXm13L8lJzahnLyMqfYjMCoKCospLZ+EPgiqg4wSBDWcIaBEs0rcTlmJ sK+uqCzaezVJE/7unkczInaZ58nbLOQADxcqYo9/jW4CeqnkZ+QZS9xtf6l15Ss60mfZ anPwRZAzVGO661pngeeUUeJub+v7rHeD1iejVnsC9p9kgPkrrlAx7fktmQ0tTf1QtzXg hKNu1gVHaLFkdLvEMDTP3+2uAf8Bp2PLKndFo3X0xbGwxF91S1QJohWHwVlF/QavGYCb eUaCtsEN1v186/3x0xR0wYmD0wNn93wHTLeY4wh18dwifPyGz9lO83qDRod1rRbk3bvN HALg== X-Received: by 10.180.189.234 with SMTP id gl10mr31388180wic.56.1404155676105; Mon, 30 Jun 2014 12:14:36 -0700 (PDT) Received: from anarsoul-thinkpad.localdomain ([212.98.170.222]) by mx.google.com with ESMTPSA id r9sm34420929wia.17.2014.06.30.12.14.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jun 2014 12:14:30 -0700 (PDT) From: Vasily Khoruzhick To: Ben Dooks , Kukjin Kim , David Woodhouse , Brian Norris , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mtd@lists.infradead.org Cc: Vasily Khoruzhick Subject: [PATCH] mtd: s3c2410: Move to clk_prepare_enable/clk_disable_unprepare Date: Mon, 30 Jun 2014 22:12:16 +0300 Message-Id: <1404155536-3032-1-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 2.0.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use clk_prepare_enable/clk_disable_unprepare to make the driver work properly with common clock framework. Signed-off-by: Vasily Khoruzhick --- drivers/mtd/nand/s3c2410.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 79acbb8..6b97bf1 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -208,10 +208,10 @@ static void s3c2410_nand_clk_set_state(struct s3c2410_nand_info *info, if (info->clk_state == CLOCK_ENABLE) { if (new_state != CLOCK_ENABLE) - clk_disable(info->clk); + clk_disable_unprepare(info->clk); } else { if (new_state == CLOCK_ENABLE) - clk_enable(info->clk); + clk_prepare_enable(info->clk); } info->clk_state = new_state;