All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow binding drivers/uio/uio_pdrv_genirq.c to devices using command line option
@ 2013-04-12 18:43 Pavel Machek
  2013-05-06 10:53 ` Pavel Machek
  2013-06-17 13:47 ` Pavel Machek
  0 siblings, 2 replies; 10+ messages in thread
From: Pavel Machek @ 2013-04-12 18:43 UTC (permalink / raw)
  To: dzu, hjk, gregkh, grant.likely, rob.herring, linux-kernel

This adds ability to bind uio driver to given open firmware device
using command line option. Thus, userspace driver can be developed and
used without modifying the kernel.

Signed-off-by: Pavel Machek <pavel@denx.de> 

diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index c122bca..8fcc2c7 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -264,9 +275,13 @@ static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
 
 #ifdef CONFIG_OF
 static const struct of_device_id uio_of_genirq_match[] = {
-	{ /* empty for now */ },
+	{ /* This is filled with module_parm */ },
+	{ /* Sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, uio_of_genirq_match);
+
+module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
+MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio");
 #else
 # define uio_of_genirq_match NULL
 #endif

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-06-18 17:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 18:43 [PATCH] Allow binding drivers/uio/uio_pdrv_genirq.c to devices using command line option Pavel Machek
2013-05-06 10:53 ` Pavel Machek
2013-05-17  0:58   ` Greg KH
2013-06-17 13:47 ` Pavel Machek
2013-06-17 17:37   ` Greg KH
2013-06-18  5:02     ` Sachin Kamat
2013-06-18 14:47       ` Greg KH
2013-06-18 13:02     ` Pavel Machek
2013-06-18 14:30       ` Pavel Machek
2013-06-18 17:58         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.