diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 11:34:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 11:35:13 -0500 |
commit | df8dc74e8a383eaf2d9b44b80a71ec6f0e52b42e (patch) | |
tree | bc3799a43e8b94fa84b32e37b1c124d5e4868f50 /drivers/isdn | |
parent | 556a169dab38b5100df6f4a45b655dddd3db94c1 (diff) | |
parent | 4a3ad20ccd8f4d2a0535cf98fa83f7b561ba59a9 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
This can be broken down into these major areas:
- Documentation updates (language translations and fixes, as
well as kobject and kset documenatation updates.)
- major kset/kobject/ktype rework and fixes. This cleans up the
kset and kobject and ktype relationship and architecture,
making sense of things now, and good documenation and samples
are provided for others to use. Also the attributes for
kobjects are much easier to handle now. This cleaned up a LOT
of code all through the kernel, making kobjects easier to use
if you want to.
- struct bus_type has been reworked to now handle the lifetime
rules properly, as the kobject is properly dynamic.
- struct driver has also been reworked, and now the lifetime
issues are resolved.
- the block subsystem has been converted to use struct device
now, and not "raw" kobjects. This patch has been in the -mm
tree for over a year now, and finally all the issues are
worked out with it. Older distros now properly work with new
kernels, and no userspace updates are needed at all.
- nozomi driver is added. This has also been in -mm for a long
time, and many people have asked for it to go in. It is now
in good enough shape to do so.
- lots of class_device conversions to use struct device instead.
The tree is almost all cleaned up now, only SCSI and IB is the
remaining code to fix up...
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: (196 commits)
Driver core: coding style fixes
Kobject: fix coding style issues in kobject c files
Kobject: fix coding style issues in kobject.h
Driver core: fix coding style issues in device.h
spi: use class iteration api
scsi: use class iteration api
rtc: use class iteration api
power supply : use class iteration api
ieee1394: use class iteration api
Driver Core: add class iteration api
Driver core: Cleanup get_device_parent() in device_add() and device_move()
UIO: constify function pointer tables
Driver Core: constify the name passed to platform_device_register_simple
driver core: fix build with SYSFS=n
sysfs: make SYSFS_DEPRECATED depend on SYSFS
Driver core: use LIST_HEAD instead of call to INIT_LIST_HEAD in __init
kobject: add sample code for how to use ksets/ktypes/kobjects
kobject: add sample code for how to use kobjects in a simple manner.
kobject: update the kobject/kset documentation
kobject: remove old, outdated documentation.
...
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/capi/capi.c | 6 | ||||
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index f449daef3eed..23ae66c76d47 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -1544,11 +1544,11 @@ static int __init capi_init(void) | |||
1544 | return PTR_ERR(capi_class); | 1544 | return PTR_ERR(capi_class); |
1545 | } | 1545 | } |
1546 | 1546 | ||
1547 | class_device_create(capi_class, NULL, MKDEV(capi_major, 0), NULL, "capi"); | 1547 | device_create(capi_class, NULL, MKDEV(capi_major, 0), "capi"); |
1548 | 1548 | ||
1549 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE | 1549 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE |
1550 | if (capinc_tty_init() < 0) { | 1550 | if (capinc_tty_init() < 0) { |
1551 | class_device_destroy(capi_class, MKDEV(capi_major, 0)); | 1551 | device_destroy(capi_class, MKDEV(capi_major, 0)); |
1552 | class_destroy(capi_class); | 1552 | class_destroy(capi_class); |
1553 | unregister_chrdev(capi_major, "capi20"); | 1553 | unregister_chrdev(capi_major, "capi20"); |
1554 | return -ENOMEM; | 1554 | return -ENOMEM; |
@@ -1576,7 +1576,7 @@ static void __exit capi_exit(void) | |||
1576 | { | 1576 | { |
1577 | proc_exit(); | 1577 | proc_exit(); |
1578 | 1578 | ||
1579 | class_device_destroy(capi_class, MKDEV(capi_major, 0)); | 1579 | device_destroy(capi_class, MKDEV(capi_major, 0)); |
1580 | class_destroy(capi_class); | 1580 | class_destroy(capi_class); |
1581 | unregister_chrdev(capi_major, "capi20"); | 1581 | unregister_chrdev(capi_major, "capi20"); |
1582 | 1582 | ||
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index a0317abaeb11..02bdaf22d7ea 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -106,12 +106,6 @@ enum debuglevel { | |||
106 | activated */ | 106 | activated */ |
107 | }; | 107 | }; |
108 | 108 | ||
109 | /* missing from linux/device.h ... */ | ||
110 | #ifndef dev_notice | ||
111 | #define dev_notice(dev, format, arg...) \ | ||
112 | dev_printk(KERN_NOTICE , dev , format , ## arg) | ||
113 | #endif | ||
114 | |||
115 | /* Kernel message macros for situations where dev_printk and friends cannot be | 109 | /* Kernel message macros for situations where dev_printk and friends cannot be |
116 | * used for lack of reliable access to a device structure. | 110 | * used for lack of reliable access to a device structure. |
117 | * linux/usb.h already contains these but in an obsolete form which clutters | 111 | * linux/usb.h already contains these but in an obsolete form which clutters |