public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ib_core: Add missing device link to class device
@ 2007-04-23 16:20 Joachim Fenkes
  2007-04-23 19:17 ` Roland Dreier
  0 siblings, 1 reply; 4+ messages in thread
From: Joachim Fenkes @ 2007-04-23 16:20 UTC (permalink / raw)
  To: LinuxPPC-Dev, LKML, OF-General, Roland Dreier; +Cc: Hoang-Nam Nguyen

Add the missing device link from /sys/class/infiniband/* to the actual device.


Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
---

 sysfs.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2.6.20/drivers/infiniband/core/sysfs.c.old    2007-04-23 15:37:37.000000000 +0200
+++ linux-2.6.20/drivers/infiniband/core/sysfs.c        2007-04-23 15:38:22.000000000 +0200
@@ -683,6 +683,7 @@ int ib_device_register_sysfs(struct ib_d

        class_dev->class      = &ib_class;
        class_dev->class_data = device;
+       class_dev->dev        = device->dma_device;
        strlcpy(class_dev->class_id, device->name, BUS_ID_SIZE);

        INIT_LIST_HEAD(&device->port_list);

-- 
Joachim Fenkes  --  eHCA Linux Driver Developer and Hardware Tamer
IBM Deutschland Entwicklung GmbH  --  Dept. 3627 (I/O Firmware Dev. 2)
Schoenaicher Strasse 220  --  71032 Boeblingen  --  Germany
eMail: fenkes@de.ibm.com  --  Phone: +49 7031 16 1239


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

end of thread, other threads:[~2007-04-24 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 16:20 [PATCH] ib_core: Add missing device link to class device Joachim Fenkes
2007-04-23 19:17 ` Roland Dreier
2007-04-24 12:06   ` Joachim Fenkes
2007-04-24 18:27     ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox