diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-05-25 05:50:53 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-07-09 18:07:39 -0400 |
commit | dd7f2928d834f7ac67202bcdf24a44ba9b138f08 (patch) | |
tree | c24379bfcc628c3f46b14105baa7885e592e856e /drivers/ieee1394/raw1394.c | |
parent | 59337087cb33db58aa0d4463892b4475cf66a50b (diff) |
ieee1394: convert ieee1394 from "struct class_device" to "struct device"
Here is a straightforward conversion to "struct device". The "struct
class_device" will be removed from the kernel.
It seems to work fine for me with and without CONFIG_SYSFS_DEPRECATED
set.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/raw1394.c')
-rw-r--r-- | drivers/ieee1394/raw1394.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index a3093b79e284..1dadd5a15ba1 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
@@ -3160,9 +3160,9 @@ static int __init init_raw1394(void) | |||
3160 | hpsb_register_highlevel(&raw1394_highlevel); | 3160 | hpsb_register_highlevel(&raw1394_highlevel); |
3161 | 3161 | ||
3162 | if (IS_ERR | 3162 | if (IS_ERR |
3163 | (class_device_create | 3163 | (device_create( |
3164 | (hpsb_protocol_class, NULL, | 3164 | hpsb_protocol_class, NULL, |
3165 | MKDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_RAW1394 * 16), NULL, | 3165 | MKDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_RAW1394 * 16), |
3166 | RAW1394_DEVICE_NAME))) { | 3166 | RAW1394_DEVICE_NAME))) { |
3167 | ret = -EFAULT; | 3167 | ret = -EFAULT; |
3168 | goto out_unreg; | 3168 | goto out_unreg; |
@@ -3189,9 +3189,9 @@ static int __init init_raw1394(void) | |||
3189 | goto out; | 3189 | goto out; |
3190 | 3190 | ||
3191 | out_dev: | 3191 | out_dev: |
3192 | class_device_destroy(hpsb_protocol_class, | 3192 | device_destroy(hpsb_protocol_class, |
3193 | MKDEV(IEEE1394_MAJOR, | 3193 | MKDEV(IEEE1394_MAJOR, |
3194 | IEEE1394_MINOR_BLOCK_RAW1394 * 16)); | 3194 | IEEE1394_MINOR_BLOCK_RAW1394 * 16)); |
3195 | out_unreg: | 3195 | out_unreg: |
3196 | hpsb_unregister_highlevel(&raw1394_highlevel); | 3196 | hpsb_unregister_highlevel(&raw1394_highlevel); |
3197 | out: | 3197 | out: |
@@ -3200,9 +3200,9 @@ static int __init init_raw1394(void) | |||
3200 | 3200 | ||
3201 | static void __exit cleanup_raw1394(void) | 3201 | static void __exit cleanup_raw1394(void) |
3202 | { | 3202 | { |
3203 | class_device_destroy(hpsb_protocol_class, | 3203 | device_destroy(hpsb_protocol_class, |
3204 | MKDEV(IEEE1394_MAJOR, | 3204 | MKDEV(IEEE1394_MAJOR, |
3205 | IEEE1394_MINOR_BLOCK_RAW1394 * 16)); | 3205 | IEEE1394_MINOR_BLOCK_RAW1394 * 16)); |
3206 | cdev_del(&raw1394_cdev); | 3206 | cdev_del(&raw1394_cdev); |
3207 | hpsb_unregister_highlevel(&raw1394_highlevel); | 3207 | hpsb_unregister_highlevel(&raw1394_highlevel); |
3208 | hpsb_unregister_protocol(&raw1394_driver); | 3208 | hpsb_unregister_protocol(&raw1394_driver); |