Update the Multiface 3 parallel port driver for new module API.

Update the Multiface 3 parallel port driver for new module API.

Post by Bob Mille » Sun, 16 Feb 2003 02:10:13



The patch below updates the Multiface 3 parallel port driver to use the
new module interfaces.  This hasn't been test (sorry no hardware).

--

Open Source Development Lab                     Phone: 503.626.2455 Ext. 17

diff -Nru a/drivers/parport/parport_mfc3.c b/drivers/parport/parport_mfc3.c
--- a/drivers/parport/parport_mfc3.c    Fri Feb 14 09:50:44 2003

        pia(p)->cra |= PIA_DDR;
 }

-static void mfc3_inc_use_count(void)
+static int mfc3_inc_use_count(void)
 {
-       MOD_INC_USE_COUNT;
+       return try_module_get(THIS_MODULE);
 }

 static void mfc3_dec_use_count(void)
 {
-       MOD_DEC_USE_COUNT;
+       module_put(THIS_MODULE);
 }

 static struct parport_operations pp_mfc3_ops = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Update the Amiga parallel port driver for new module API.

The patch below updates the Amiga parallel port driver to use the new module
interfaces.  This hasn't been test (sorry no hardware).

--

Open Source Development Lab                     Phone: 503.626.2455 Ext. 17

diff -Nru a/drivers/parport/parport_amiga.c b/drivers/parport/parport_amiga.c
--- a/drivers/parport/parport_amiga.c   Fri Feb 14 09:50:44 2003

        mb();
 }

-static void amiga_inc_use_count(void)
+static int amiga_inc_use_count(void)
 {
-       MOD_INC_USE_COUNT;
+       return try_module_get(THIS_MODULE);
 }

 static void amiga_dec_use_count(void)
 {
-       MOD_DEC_USE_COUNT;
+       module_put(THIS_MODULE);
 }

 static struct parport_operations pp_amiga_ops = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Reading is much more interesting than TV (0240/1708)

3. Update the Archimedes parallel port driver for new module API.

4. Domain logins

5. Update the Atari parallel port driver for new module API.

6. vold broken vis-a-vis floppies?

7. Update the PC parallel port driver for new module API.

8. Vmlinuz vs. ZImage

9. Update the GSC-Bus parallel port driver for new module API.

10. Update the Sun parallel port driver for new module API.

11. Update parallel port drivers to module loader API.

12. Update parport class driver to new module loader API.

13. update md driver to new module API