From: Samuel Ortiz <samuel.ortiz@nokia.com>
To: "ext David S. Miller" <davem@davemloft.net>
Cc: Jean Tourrilhes <jt@hpl.hp.com>,
IrDA users <irda-users@lists.sourceforge.net>,
netdev@vger.kernel.org,
David Brownell <dbrownell@users.sourceforge.net>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH 3/4] IrDA: smsc-ircc: Minimal hotplug support.
Date: Tue, 9 May 2006 00:23:59 +0300 [thread overview]
Message-ID: <20060508212359.GD20933@irie> (raw)
Minimal PNP hotplug support for the smsc-ircc2 driver. A modular driver
will be modprobed via hotplug, but still bypasses driver model probing.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com>
---
drivers/net/irda/smsc-ircc2.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
863409d3d18ed6194ef84d813bb316248a9ea0a3
diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c
index 58f76ce..a467404 100644
--- a/drivers/net/irda/smsc-ircc2.c
+++ b/drivers/net/irda/smsc-ircc2.c
@@ -54,6 +54,7 @@ #include <linux/init.h>
#include <linux/rtnetlink.h>
#include <linux/serial_reg.h>
#include <linux/dma-mapping.h>
+#include <linux/pnp.h>
#include <linux/platform_device.h>
#include <asm/io.h>
@@ -358,6 +359,16 @@ static inline void register_bank(int iob
iobase + IRCC_MASTER);
}
+#ifdef CONFIG_PNP
+/* PNP hotplug support */
+static const struct pnp_device_id smsc_ircc_pnp_table[] = {
+ { .id = "SMCf010", .driver_data = 0 },
+ /* and presumably others */
+ { }
+};
+MODULE_DEVICE_TABLE(pnp, smsc_ircc_pnp_table);
+#endif
+
/*******************************************************************************
*
@@ -2072,7 +2083,8 @@ static void smsc_ircc_sir_wait_hw_transm
/* PROBING
*
- *
+ * REVISIT we can be told about the device by PNP, and should use that info
+ * instead of probing hardware and creating a platform_device ...
*/
static int __init smsc_ircc_look_for_chips(void)
--
1.3.1
next reply other threads:[~2006-05-08 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 21:23 Samuel Ortiz [this message]
2006-05-09 22:26 ` [PATCH 3/4] IrDA: smsc-ircc: Minimal hotplug support David S. Miller
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=20060508212359.GD20933@irie \
--to=samuel.ortiz@nokia.com \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=dbrownell@users.sourceforge.net \
--cc=irda-users@lists.sourceforge.net \
--cc=jt@hpl.hp.com \
--cc=netdev@vger.kernel.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).