trivial cleanup of DRM 4.0 code from i830 driver

trivial cleanup of DRM 4.0 code from i830 driver

Post by John Ki » Thu, 30 Jan 2003 09:20:07



I found some old DRM 4.0 code in 2.5.59.   Here is patch to remove them.

John Kim

--- linux-2.5.59/drivers/char/drm/i830_dma.c    2003-01-16 21:21:38.000000000 -0500

 #include <linux/interrupt.h>     /* For task queue support */
 #include <linux/delay.h>

-#ifdef DO_MUNMAP_4_ARGS
-#define DO_MUNMAP(m, a, l)     do_munmap(m, a, l, 1)
-#else
-#define DO_MUNMAP(m, a, l)     do_munmap(m, a, l)
-#endif
-
 #define I830_BUF_FREE          2
 #define I830_BUF_CLIENT                1

                return -EINVAL;

        down_write(&current->mm->mmap_sem);
-       retcode = DO_MUNMAP(current->mm,
+       retcode = do_munmap(current->mm,
                            (unsigned long)buf_priv->virtual,
                            (size_t) buf->total);
        up_write(&current->mm->mmap_sem);
-
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. Trivial: check_region cleanup from drivers/char/ip2main.c


  You say, i'm frezy :)

  Please test and apply.

        Evgeniy Polyakov ( s0mbre )

--- trivial-2.5.18/drivers/char/ip2main.c.orig  Mon May 27 12:07:37 2002

        printk(KERN_INFO "IP2: Board %d: addr=0x%x irq=%d\n", boardnum + 1,
               ip2config.addr[boardnum], ip2config.irq[boardnum] );

-       if (0 != ( rc = check_region( ip2config.addr[boardnum], 8))) {
-               printk(KERN_ERR "IP2: bad addr=0x%x rc = %d\n",
-                               ip2config.addr[boardnum], rc );
+       if (!request_region( ip2config.addr[boardnum], 8, pcName )) {
+               printk(KERN_ERR "IP2: bad addr=0x%x\n", ip2config.addr[boardnum]);
                goto err_initialize;
        }
-       request_region( ip2config.addr[boardnum], 8, pcName );

        if ( iiDownloadAll ( pB, (loadHdrStrPtr)Fip_firmware, 1, Fip_firmware_size )
            != II_DOWN_GOOD ) {

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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. Newsx+INN: Why only 3 days article?

3. Trivial: exit path cleanup in drivers/cdrom/sonycd535.c

4. Printer advice wanted

5. nbd driver for 2.5+: cleanup PARANOIA usage & code

6. Disk IO statisitics gathering for all disks

7. AGPGART 1/5: minor DRM interface cleanup

8. logrotate problem - HUGE /var/log/messages file!

9. Trivial patch: linux-2.5.20/Rules.make cleanup

10. 2.4 - trivial cleanup in kmem_cache_reap()

11. : trivial sys_mincore cleanup

12. USB speedtouch: trivial cleanups

13. 2.5-bk trivial LSM cleanup