]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/tifm_core.c
V4L/DVB (5012): Usbvision fix: It was using "&&" instead "&"
[linux-2.6-omap-h63xx.git] / drivers / misc / tifm_core.c
index ee326136d03bf409d5604229255a9a9591396792..d61df5c3ac367cd8e38650c1c44c19db99f3785d 100644 (file)
@@ -219,8 +219,9 @@ static int tifm_device_remove(struct device *dev)
        struct tifm_driver *drv = fm_dev->drv;
 
        if (drv) {
-               if (drv->remove) drv->remove(fm_dev);
-               fm_dev->drv = 0;
+               if (drv->remove)
+                       drv->remove(fm_dev);
+               fm_dev->drv = NULL;
        }
 
        put_device(dev);