From a46f906a0da5ee05e50ab3fc38f65dd06d552a9e Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Fri, 21 Dec 2012 01:05:22 +0200 Subject: [PATCH] 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 cb4e4d006857d7fbc2ba51c63a96f2c97f2738d1. Signed-off-by: Tzafrir Cohen --- drivers/dahdi/dahdi-sysfs-chan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dahdi/dahdi-sysfs-chan.c b/drivers/dahdi/dahdi-sysfs-chan.c index d6184e8..84bfef9 100644 --- a/drivers/dahdi/dahdi-sysfs-chan.c +++ b/drivers/dahdi/dahdi-sysfs-chan.c @@ -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; /*