aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uio
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2013-06-18 16:35:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-18 18:44:59 -0400
commit05c3e0bb5629b897b0459e4bfb1b93d729033b99 (patch)
treef2d8af6ef8163661b624ca20141e0836e7098650 /drivers/uio
parent4debfe409b6e550032bfef9733e9f6f7c5613617 (diff)
UIO: allow binding uio_pdrv_genirq.c to devices using command line option
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> Tested-by: Detlev Zundel <dzu@denx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio')
-rw-r--r--drivers/uio/uio_pdrv_genirq.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index c122bca669b6..960809f010d7 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -263,10 +263,14 @@ static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = {
263}; 263};
264 264
265#ifdef CONFIG_OF 265#ifdef CONFIG_OF
266static const struct of_device_id uio_of_genirq_match[] = { 266static struct of_device_id uio_of_genirq_match[] = {
267 { /* empty for now */ }, 267 { /* This is filled with module_parm */ },
268 { /* Sentinel */ },
268}; 269};
269MODULE_DEVICE_TABLE(of, uio_of_genirq_match); 270MODULE_DEVICE_TABLE(of, uio_of_genirq_match);
271
272module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);
273MODULE_PARM_DESC(of_id, "Openfirmware id of the device to be handled by uio");
270#else 274#else
271# define uio_of_genirq_match NULL 275# define uio_of_genirq_match NULL
272#endif 276#endif