From: Jens Osterkamp <jens@de.ibm.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org
Subject: [PATCH] of_serial : set custom divisor computed from device tree values
Date: Fri, 26 Jan 2007 18:22:21 +0100 [thread overview]
Message-ID: <200701261822.21284.jens@de.ibm.com> (raw)
Small fix to Arnds of_serial driver which computes the custom divisor
from the device tree values.
Signed-off-by: Jens Osterkamp <jens@de.ibm.com>
Index: linux-2.6.20-rc5/drivers/serial/of_serial.c
===================================================================
--- linux-2.6.20-rc5.orig/drivers/serial/of_serial.c
+++ linux-2.6.20-rc5/drivers/serial/of_serial.c
@@ -50,9 +50,8 @@ static int __devinit of_platform_serial_
port->uartclk = *clk;
port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP;
port->dev = &ofdev->dev;
-/* if (spd) // FIXME: how to set?
- port->speed = spd;
-*/
+ port->custom_divisor = *clk / (16 * (*spd));
+
return 0;
}
reply other threads:[~2007-01-26 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200701261822.21284.jens@de.ibm.com \
--to=jens@de.ibm.com \
--cc=arnd@arndb.de \
--cc=cbe-oss-dev@ozlabs.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).