* [PATCH] spi: set kset of master class dev explicitly
@ 2006-01-12 19:18 Imre Deak
0 siblings, 0 replies; only message in thread
From: Imre Deak @ 2006-01-12 19:18 UTC (permalink / raw)
To: david-b; +Cc: Linux-kernel
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.
Signed-off-by: Imre Deak <imre.deak@nokia.com>
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 6d54112..3cb1ec4 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -366,6 +366,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]);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-12 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 19:18 [PATCH] spi: set kset of master class dev explicitly Imre Deak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®