nvidiafb: fix return value of nvidiafb_open()
Fix return value of nvidiafb_open().
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index 6105753..7c36b5f 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -1016,7 +1016,7 @@
par->open_count--;
done:
mutex_unlock(&par->open_lock);
- return 0;
+ return err;
}
static struct fb_ops nvidia_fb_ops = {