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: 4454071 Return-Path: X-Original-To: patchwork-linux-arm@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 3CCF29F358 for ; Mon, 30 Jun 2014 19:17:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80A8A20382 for ; Mon, 30 Jun 2014 19:17:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3D432037E for ; Mon, 30 Jun 2014 19:17:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1h2n-0007XR-RO; Mon, 30 Jun 2014 19:15:13 +0000 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1h2Y-0006xh-Ly; Mon, 30 Jun 2014 19:14:59 +0000 Received: by mail-wi0-f180.google.com with SMTP id hi2so6577921wib.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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140630_121458_888672_745DA84D X-CRM114-Status: GOOD ( 10.15 ) X-Spam-Score: -0.8 (/) Cc: Vasily Khoruzhick X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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;