[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <adar5x0ffds.fsf@cisco.com>
Date: Wed, 01 Jul 2009 11:05:19 -0700
From: Roland Dreier <rdreier@...co.com>
To: dan.j.williams@...el.com, maciej.sosnowski@...el.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] Add MODULE_DEVICE_TABLE() so ioatdma module is autoloaded
The ioatdma module is missing aliases for the PCI devices it supports,
so it is not autoloaded on boot. Add a MODULE_DEVICE_TABLE() to get
these aliases.
Signed-off-by: Roland Dreier <rolandd@...co.com>
---
Not sure if not autoloading was intentional or if it's just an
oversight, but this patch seems useful to me, so please apply if it
makes sense to you.
drivers/dma/ioat.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/ioat.c b/drivers/dma/ioat.c
index 2225bb6..a1d8b8d 100644
--- a/drivers/dma/ioat.c
+++ b/drivers/dma/ioat.c
@@ -60,6 +60,8 @@ static struct pci_device_id ioat_pci_tbl[] = {
{ 0, }
};
+MODULE_DEVICE_TABLE(pci, ioat_pci_tbl);
+
struct ioat_device {
struct pci_dev *pdev;
void __iomem *iobase;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists