Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kay Sievers and committed by
Greg Kroah-Hartman
cfde779f 6c9d2909

+6 -6
+6 -6
arch/powerpc/sysdev/qe_lib/qe_ic.c
··· 22 22 #include <linux/stddef.h> 23 23 #include <linux/sched.h> 24 24 #include <linux/signal.h> 25 - #include <linux/sysdev.h> 26 25 #include <linux/device.h> 27 26 #include <linux/bootmem.h> 28 27 #include <linux/spinlock.h> ··· 483 484 return 0; 484 485 } 485 486 486 - static struct sysdev_class qe_ic_sysclass = { 487 + static struct bus_type qe_ic_subsys = { 487 488 .name = "qe_ic", 489 + .dev_name = "qe_ic", 488 490 }; 489 491 490 - static struct sys_device device_qe_ic = { 492 + static struct device device_qe_ic = { 491 493 .id = 0, 492 - .cls = &qe_ic_sysclass, 494 + .bus = &qe_ic_subsys, 493 495 }; 494 496 495 497 static int __init init_qe_ic_sysfs(void) ··· 499 499 500 500 printk(KERN_DEBUG "Registering qe_ic with sysfs...\n"); 501 501 502 - rc = sysdev_class_register(&qe_ic_sysclass); 502 + rc = subsys_system_register(&qe_ic_subsys, NULL); 503 503 if (rc) { 504 504 printk(KERN_ERR "Failed registering qe_ic sys class\n"); 505 505 return -ENODEV; 506 506 } 507 - rc = sysdev_register(&device_qe_ic); 507 + rc = device_register(&device_qe_ic); 508 508 if (rc) { 509 509 printk(KERN_ERR "Failed registering qe_ic sys device\n"); 510 510 return -ENODEV;