public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Joachim Fenkes <fenkes@de•ibm.com>
To: "LinuxPPC-Dev" <linuxppc-dev@ozlabs•org>,
	LKML <linux-kernel@vger•kernel.org>,
	"OF-General" <general@lists•openfabrics.org>,
	Roland Dreier <rolandd@cisco•com>
Subject: [PATCH] ib_core: Add missing device link to class device
Date: Mon, 23 Apr 2007 18:20:27 +0200	[thread overview]
Message-ID: <200704231820.27752.fenkes@de.ibm.com> (raw)

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


Signed-off-by: Joachim Fenkes <fenkes@de•ibm.com>
=2D--

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

=2D-- 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=
=2E000000000 +0200
@@ -683,6 +683,7 @@ int ib_device_register_sysfs(struct ib_d

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

        INIT_LIST_HEAD(&device->port_list);

=2D-=20
Joachim Fenkes =A0-- =A0eHCA Linux Driver Developer and Hardware Tamer
IBM Deutschland Entwicklung GmbH =A0-- =A0Dept. 3627 (I/O Firmware Dev. 2)
Schoenaicher Strasse 220 =A0-- =A071032 Boeblingen =A0-- =A0Germany
eMail: fenkes@de•ibm.com =A0-- =A0Phone: +49 7031 16 1239

             reply	other threads:[~2007-04-23 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 16:20 Joachim Fenkes [this message]
2007-04-23 19:17 ` [PATCH] ib_core: Add missing device link to class device Roland Dreier
2007-04-24 12:06   ` Joachim Fenkes
2007-04-24 18:27     ` Roland Dreier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200704231820.27752.fenkes@de.ibm.com \
    --to=fenkes@de$(echo .)ibm.com \
    --cc=general@lists$(echo .)openfabrics.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=rolandd@cisco$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox