Skip to content

Commit cfde779

Browse files
kaysieversgregkh
authored andcommitted
power: qe_ic - convert sysdev_class to a regular subsystem
After all sysdev classes are ported to regular driver core entities, the sysdev implementation will be entirely removed from the kernel. Cc: Timur Tabi <timur@freescale.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 6c9d290 commit cfde779

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/powerpc/sysdev/qe_lib/qe_ic.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/stddef.h>
2323
#include <linux/sched.h>
2424
#include <linux/signal.h>
25-
#include <linux/sysdev.h>
2625
#include <linux/device.h>
2726
#include <linux/bootmem.h>
2827
#include <linux/spinlock.h>
@@ -484,13 +483,14 @@ int qe_ic_set_high_priority(unsigned int virq, unsigned int priority, int high)
484483
return 0;
485484
}
486485

487-
static struct sysdev_class qe_ic_sysclass = {
486+
static struct bus_type qe_ic_subsys = {
488487
.name = "qe_ic",
488+
.dev_name = "qe_ic",
489489
};
490490

491-
static struct sys_device device_qe_ic = {
491+
static struct device device_qe_ic = {
492492
.id = 0,
493-
.cls = &qe_ic_sysclass,
493+
.bus = &qe_ic_subsys,
494494
};
495495

496496
static int __init init_qe_ic_sysfs(void)
@@ -499,12 +499,12 @@ static int __init init_qe_ic_sysfs(void)
499499

500500
printk(KERN_DEBUG "Registering qe_ic with sysfs...\n");
501501

502-
rc = sysdev_class_register(&qe_ic_sysclass);
502+
rc = subsys_system_register(&qe_ic_subsys, NULL);
503503
if (rc) {
504504
printk(KERN_ERR "Failed registering qe_ic sys class\n");
505505
return -ENODEV;
506506
}
507-
rc = sysdev_register(&device_qe_ic);
507+
rc = device_register(&device_qe_ic);
508508
if (rc) {
509509
printk(KERN_ERR "Failed registering qe_ic sys device\n");
510510
return -ENODEV;

0 commit comments

Comments
 (0)