From patchwork Mon Jun 23 20:29:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 4404431 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 70336BEEAA for ; Mon, 23 Jun 2014 20:31:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 791A5202F2 for ; Mon, 23 Jun 2014 20:31:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 744CE201F4 for ; Mon, 23 Jun 2014 20:31:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756718AbaFWUbd (ORCPT ); Mon, 23 Jun 2014 16:31:33 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:33088 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756715AbaFWUbc (ORCPT ); Mon, 23 Jun 2014 16:31:32 -0400 Received: by mail-we0-f179.google.com with SMTP id w62so7617576wes.38 for ; Mon, 23 Jun 2014 13:31:30 -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=gJ3IvPlNWLH5ONRVgumWRwZvS/3zXZsm3WrRkE76qSo=; b=u8aT1U3VE05fIA7nDrEdT/eSvscAfM02ZcX4H6ZO7BspWHGGzTRyOgGQK/V7F+0dVb JhTA6PAyNRtUpr9yRZJuKSIolgFCMajG+rj3rEP+6UOVgn66eu5ss20CbUuTwYLCRV9o d1jU8hkaptqmyi76m1Exvt0ylm2xHx4FXqXbI15SE5VH2a2aVhCf6W7q24y0mKL6FMPw 3oNE4q8EeqAXziS7DyHSwUe144xQoB0QkyrMXCOJEy3Xma5+nPJK3LK/pawZy6PBhk84 KA99Wm+IUV3VI17gTNj1EppPjRE4XP4SDt44XRJtxXwMsSdLhr7VK7M/KcU7R02XsyKP Qemg== X-Received: by 10.180.210.174 with SMTP id mv14mr28898136wic.47.1403555490561; Mon, 23 Jun 2014 13:31:30 -0700 (PDT) Received: from anarsoul-thinkpad.localdomain ([212.98.175.166]) by mx.google.com with ESMTPSA id o10sm38570722wjy.0.2014.06.23.13.31.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jun 2014 13:31:20 -0700 (PDT) From: Vasily Khoruzhick To: Ben Dooks , Kukjin Kim , Tomasz Figa , Mike Turquette , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?UTF-8?q?Heiko=20St=C3=BCbner?= Cc: Vasily Khoruzhick Subject: [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Date: Mon, 23 Jun 2014 23:29:09 +0300 Message-Id: <1403555350-14895-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 There's a several typos in a driver: 2410 instead of S3C2410 and wrong argument to ARRAY_SIZE(). They prevent s3c2410 from properly booting. Signed-off-by: Vasily Khoruzhick Reviewed-by: Heiko Stuebner --- drivers/clk/samsung/clk-s3c2410.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-s3c2410.c b/drivers/clk/samsung/clk-s3c2410.c index ba07168..bd9a873 100644 --- a/drivers/clk/samsung/clk-s3c2410.c +++ b/drivers/clk/samsung/clk-s3c2410.c @@ -378,7 +378,7 @@ void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f, if (!np) s3c2410_common_clk_register_fixed_ext(ctx, xti_f); - if (current_soc == 2410) { + if (current_soc == S3C2410) { if (_get_rate("xti") == 12 * MHZ) { s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl; s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl; @@ -432,7 +432,7 @@ void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f, samsung_clk_register_fixed_factor(ctx, s3c2410_ffactor, ARRAY_SIZE(s3c2410_ffactor)); samsung_clk_register_alias(ctx, s3c2410_aliases, - ARRAY_SIZE(s3c2410_common_aliases)); + ARRAY_SIZE(s3c2410_aliases)); break; case S3C2440: samsung_clk_register_mux(ctx, s3c2440_muxes,