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: 4404461 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 DD5AB9F390 for ; Mon, 23 Jun 2014 20:34:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF6F7202F8 for ; Mon, 23 Jun 2014 20:34:09 +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 1164A201F4 for ; Mon, 23 Jun 2014 20:34:09 +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 1WzAuE-0002Sq-Nv; Mon, 23 Jun 2014 20:31:58 +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 1WzAu9-0002NX-Fi for linux-arm-kernel@lists.infradead.org; Mon, 23 Jun 2014 20:31:56 +0000 Received: by mail-wi0-f180.google.com with SMTP id hi2so4889486wib.7 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?= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140623_133155_833613_151737BE X-CRM114-Status: GOOD ( 11.56 ) 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 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,