[ofa-general] [PATCH] infiniband: class_device fallout

Stephen Rothwell sfr at canb.auug.org.au
Mon Apr 21 17:24:24 PDT 2008


Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
---
 drivers/infiniband/hw/ipath/ipath_verbs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

This patch has been needed in linux-next since April 4 to fix an
interaction between the driver-core patches and the infiniband tree.  All
the parties knew this was necessary. Today, Linus' tree has this build
bug.

*exasperated sigh*

diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c
index 466f3fb..6ac0c5c 100644
--- a/drivers/infiniband/hw/ipath/ipath_verbs.c
+++ b/drivers/infiniband/hw/ipath/ipath_verbs.c
@@ -2067,7 +2067,7 @@ int ipath_register_ib_device(struct ipath_devdata *dd)
 	dev->phys_port_cnt = 1;
 	dev->num_comp_vectors = 1;
 	dev->dma_device = &dd->pcidev->dev;
-	dev->class_dev.dev = dev->dma_device;
+	dev->dev.parent = dev->dma_device;
 	dev->query_device = ipath_query_device;
 	dev->modify_device = ipath_modify_device;
 	dev->query_port = ipath_query_port;
-- 
1.5.4.5

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/



More information about the general mailing list