Only use bus and no class for channel devices

It's wrong (and explicit oops with kernel >= 2.6.19) to set both
bus and class for the same device. But setting the class is not needed
in order to create a device. So just remove our dynamic devices from the
dahdi_class. It will only contain the fixed-named devices.

This fixes regression from cb4e4d0068.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen
2012-12-21 01:05:22 +02:00
committed by Russ Meyerriecks
parent 9de213b104
commit a46f906a0d

View File

@@ -241,7 +241,6 @@ int chan_sysfs_create(struct dahdi_chan *chan)
devt = MKDEV(MAJOR(dahdi_channels_devt), chan->channo);
dev = &chan->chan_device;
dev->devt = devt;
dev->class = dahdi_class;
dev->bus = &chan_bus_type;
dev->parent = span->span_device;
/*