From: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
To: dbrownell@users.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] [2.6.18] resend of spi set kset of master class dev explicitly
Date: Thu, 19 Oct 2006 11:21:54 +0200 [thread overview]
Message-ID: <453743B2.2040004@atmel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
Hello,
<quote Imre Deak from Thu, 12 Jan 2006 21:18:54 +0200>
In order for spi_busnum_to_master to work spi master devices must be
linked into the spi_master_class.subsys.kset list. At the moment the
default class_obj_subsys.kset is used and we can't enumerate the master
devices.
</quote>
Patch is updated to match the 2.6.18 kernel.
Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
--
With kind regards,
Hans-Christian Egtvedt
Applications Engineer - AVR Applications Lab
[-- Attachment #2: spi-set-kset-of-master-class-dev-explicitly.patch --]
[-- Type: text/x-patch, Size: 412 bytes --]
--- a/drivers/spi/spi.c 2006-10-19 11:13:21.000000000 +0200
+++ b/drivers/spi/spi.c 2006-10-19 11:13:04.000000000 +0200
@@ -367,6 +367,7 @@ spi_alloc_master(struct device *dev, uns
class_device_initialize(&master->cdev);
master->cdev.class = &spi_master_class;
+ kobj_set_kset_s(&master->cdev, spi_master_class.subsys);
master->cdev.dev = get_device(dev);
spi_master_set_devdata(master, &master[1]);
reply other threads:[~2006-10-19 9:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=453743B2.2040004@atmel.com \
--to=hcegtvedt@atmel.com \
--cc=dbrownell@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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