From patchwork Sat Sep 21 08:04:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Pelykh X-Patchwork-Id: 2922071 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 9B70C9F1E2 for ; Sat, 21 Sep 2013 08:05:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D4ED2204D8 for ; Sat, 21 Sep 2013 08:05:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1D13204CD for ; Sat, 21 Sep 2013 08:05:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNIBk-0007V2-2f; Sat, 21 Sep 2013 08:05:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNIBh-0003yi-Es; Sat, 21 Sep 2013 08:05:09 +0000 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNIBe-0003yH-GW for linux-arm-kernel@lists.infradead.org; Sat, 21 Sep 2013 08:05:07 +0000 Received: by mail-wg0-f48.google.com with SMTP id n12so1341321wgh.15 for ; Sat, 21 Sep 2013 01:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=F0YndW8wApnKuJMKVQP4b3/YTsmKgyD/k015V2BGvXI=; b=WFhF5AanO+lXBR3bjTF+LX1P/Z3J/RvZjyxSUgNa8iu2DixJMoa/Durhs2w3iLaC/p 0mfwSHPiP4OUqTYwjrCtwO+Cw14OWoOd60tVvAf0+KJFsy2CIXZ7/rdMSxLxoZ1S/ulS 9sD9v0wj7l2fE5QLG8QnYKhNn1QfczOCaLh6b+0UwnLaaiT3tjFa8nbbPQaXZYEFeTkE FUZRHuceN8xAdLkWNzE4xuE+UxCmxt3kIo392et6/zUegojRHSyGo19AM+KFpMKoXjFI DLaA2TkHlm7kXg/viKDjcet2mGogwuegKl4peFiHPftOX+UzcVLzhmBx2pCzmYgK1hMV zQuQ== X-Received: by 10.180.82.164 with SMTP id j4mr5611790wiy.65.1379750683378; Sat, 21 Sep 2013 01:04:43 -0700 (PDT) Received: from inertiallabs-linux64 (5353B86B.cm-6-4c.dynamic.ziggo.nl. [83.83.184.107]) by mx.google.com with ESMTPSA id ey2sm10217267wib.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 01:04:42 -0700 (PDT) Date: Sat, 21 Sep 2013 04:04:35 -0400 From: Alexey Pelykh To: Greg KH Subject: [PATCH] OMAP/serial: Fix misnamed variable Message-ID: <20130921080435.GA15678@inertiallabs-linux64> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130921_040506_716526_2E1B48BA X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: Tony Lindgren , linux-kernel@vger.kernel.org, Felipe Balbi , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Alexey Pelykh Fix misnamed variable to eliminate confusion. Signed-off-by: Alexey Pelykh Cc: Tony Lindgren Cc: Felipe Balbi Cc: Greg KH Cc: linux-serial@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 808a880..7d348c8 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -258,13 +258,13 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) static unsigned int serial_omap_get_divisor(struct uart_port *port, unsigned int baud) { - unsigned int divisor; + unsigned int mode; if (!serial_omap_baud_is_mode16(port, baud)) - divisor = 13; + mode = 13; else - divisor = 16; - return port->uartclk/(baud * divisor); + mode = 16; + return port->uartclk/(mode * baud); } static void serial_omap_enable_ms(struct uart_port *port)