]> git.hungrycats.org Git - linux/commitdiff
[PATCH] zoran: add pci_disable_device() call
authorAndrew Morton <akpm@osdl.org>
Sun, 31 Aug 2003 11:28:22 +0000 (04:28 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 31 Aug 2003 11:28:22 +0000 (04:28 -0700)
From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch adds pci_disable_device() to the card release function; we
already used pci_enable_device() in the card detection function.  This was
noticed by Francois Romieu.

drivers/media/video/zoran_card.c

index 711ba929638200d87df76a35ee501abc3a29cdc6..c3c969d92e26e0c350a7c1b1a1eed12ebc964315 100644 (file)
@@ -1118,6 +1118,7 @@ zoran_release (struct zoran *zr)
        kfree((void *) zr->stat_com);
        zoran_proc_cleanup(zr);
        iounmap(zr->zr36057_mem);
+       pci_disable_device(zr->pci_dev);
        video_unregister_device(zr->video_dev);
 }