From: ppannuto@codeaurora.org (Patrick Pannuto)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] msm: serial: Move msm_uart_driver onto msm bus
Date: Wed, 18 Aug 2010 12:15:43 -0700 [thread overview]
Message-ID: <1282158943-11902-5-git-send-email-ppannuto@codeaurora.org> (raw)
In-Reply-To: <1282158943-11902-1-git-send-email-ppannuto@codeaurora.org>
Proof of concept; move one device / driver pair
Change-Id: I1afb6f54e6574057699db5b8f9fb7f4456a52010
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
---
arch/arm/mach-msm/board-qsd8x50.c | 3 ++-
drivers/serial/msm_serial.c | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c
index e3cc807..0deb369 100644
--- a/arch/arm/mach-msm/board-qsd8x50.c
+++ b/arch/arm/mach-msm/board-qsd8x50.c
@@ -27,6 +27,7 @@
#include <asm/setup.h>
#include <mach/board.h>
+#include <mach/msm_device.h>
#include <mach/irqs.h>
#include <mach/sirc.h>
#include <mach/gpio.h>
@@ -65,7 +66,7 @@ static void __init qsd8x50_init_irq(void)
static void __init qsd8x50_init(void)
{
msm8x50_init_uart3();
- platform_add_devices(devices, ARRAY_SIZE(devices));
+ msm_device_register(&msm_device_uart3);
}
MACHINE_START(QSD8X50_SURF, "QCT QSD8X50 SURF")
diff --git a/drivers/serial/msm_serial.c b/drivers/serial/msm_serial.c
index f8c816e..3332fe7 100644
--- a/drivers/serial/msm_serial.c
+++ b/drivers/serial/msm_serial.c
@@ -32,6 +32,8 @@
#include <linux/clk.h>
#include <linux/platform_device.h>
+#include <mach/msm_device.h>
+
#include "msm_serial.h"
struct msm_port {
@@ -732,7 +734,7 @@ static int __init msm_serial_init(void)
if (unlikely(ret))
return ret;
- ret = platform_driver_probe(&msm_platform_driver, msm_serial_probe);
+ ret = msm_driver_probe(&msm_platform_driver, msm_serial_probe);
if (unlikely(ret))
uart_unregister_driver(&msm_uart_driver);
--
1.7.2.1
prev parent reply other threads:[~2010-08-18 19:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1282158943-11902-1-git-send-email-ppannuto@codeaurora.org>
2010-08-18 19:15 ` [PATCH 3/4] msm-bus: Define the msm-bus skeleton Patrick Pannuto
2010-08-18 22:13 ` Grant Likely
2010-08-19 18:12 ` Patrick Pannuto
2010-08-19 21:31 ` Grant Likely
2010-08-18 19:15 ` Patrick Pannuto [this message]
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=1282158943-11902-5-git-send-email-ppannuto@codeaurora.org \
--to=ppannuto@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.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).