2007-08-20 22:53:58

by Tony Jones

[permalink] [raw]
Subject: [patch 05/14] Convert from class_device to device for cosa sync driver

--
Content-Disposition: inline; filename=wan.patch

Convert from class_device to device for drivers/net/wan/cosa. This is part of
the work to eliminate struct class_device.

---
drivers/net/wan/cosa.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -395,8 +395,7 @@ static int __init cosa_init(void)
goto out_chrdev;
}
for (i=0; i<nr_cards; i++) {
- class_device_create(cosa_class, NULL, MKDEV(cosa_major, i),
- NULL, "cosa%d", i);
+ device_create(cosa_class, NULL, MKDEV(cosa_major, i), "cosa%d", i);
}
err = 0;
goto out;
@@ -415,7 +414,7 @@ static void __exit cosa_exit(void)
printk(KERN_INFO "Unloading the cosa module\n");

for (i=0; i<nr_cards; i++)
- class_device_destroy(cosa_class, MKDEV(cosa_major, i));
+ device_destroy(cosa_class, MKDEV(cosa_major, i));
class_destroy(cosa_class);
for (cosa=cosa_cards; nr_cards--; cosa++) {
/* Clean up the per-channel data */

--


2007-08-21 15:01:54

by Tony Jones

[permalink] [raw]
Subject: Re: [patch 05/14] Convert from class_device to device for cosa sync driver

On Mon, Aug 20, 2007 at 03:48:11PM -0700, [email protected] wrote:
> --
> Content-Disposition: inline; filename=wan.patch
>
> Convert from class_device to device for drivers/net/wan/cosa. This is part of
> the work to eliminate struct class_device.

Signed-off-by: Tony Jones <[email protected]>

2007-08-22 10:14:54

by Jan Kasprzak

[permalink] [raw]
Subject: Re: [patch 05/14] Convert from class_device to device for cosa sync driver

Tony Jones wrote:
: On Mon, Aug 20, 2007 at 03:48:11PM -0700, [email protected] wrote:
: > --
: > Content-Disposition: inline; filename=wan.patch
: >
: > Convert from class_device to device for drivers/net/wan/cosa. This is part of
: > the work to eliminate struct class_device.
:
: Signed-off-by: Tony Jones <[email protected]>

Acked-By: Jan "Yenya" Kasprzak <[email protected]>

-Yenya

--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
========== Pruning mailbox after being ~10 days offline.
========== Sorry for the possibly delayed reply.