Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139295
b: refs/heads/master
c: 98da329
h: refs/heads/master
i:
  139293: 855fb7c
  139291: 13e0bb0
  139287: 564abfe
  139279: 8280a92
  139263: 78d0ae8
v: v3
  • Loading branch information
Alessio Igor Bogani authored and Linus Torvalds committed Apr 1, 2009
1 parent e407caf commit ee70fe1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18b41f1cd537168a886c43237297692ba8d0a143
refs/heads/master: 98da329581e3e6a08eba418ba6da64c05bacd029
2 changes: 0 additions & 2 deletions trunk/drivers/video/nvidia/nv_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <linux/types.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/mutex.h>
#include <video/vga.h>

#define NV_ARCH_04 0x04
Expand Down Expand Up @@ -99,7 +98,6 @@ struct nvidia_par {
RIVA_HW_STATE initial_state;
RIVA_HW_STATE *CurrentState;
struct vgastate vgastate;
struct mutex open_lock;
u32 pseudo_palette[16];
struct pci_dev *pci_dev;
u32 Architecture;
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/video/nvidia/nvidia.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,15 +1004,12 @@ static int nvidiafb_open(struct fb_info *info, int user)
{
struct nvidia_par *par = info->par;

mutex_lock(&par->open_lock);

if (!par->open_count) {
save_vga_x86(par);
nvidia_save_vga(par, &par->initial_state);
}

par->open_count++;
mutex_unlock(&par->open_lock);
return 0;
}

Expand All @@ -1021,8 +1018,6 @@ static int nvidiafb_release(struct fb_info *info, int user)
struct nvidia_par *par = info->par;
int err = 0;

mutex_lock(&par->open_lock);

if (!par->open_count) {
err = -EINVAL;
goto done;
Expand All @@ -1035,7 +1030,6 @@ static int nvidiafb_release(struct fb_info *info, int user)

par->open_count--;
done:
mutex_unlock(&par->open_lock);
return err;
}

Expand Down Expand Up @@ -1300,7 +1294,6 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd,

par = info->par;
par->pci_dev = pd;
mutex_init(&par->open_lock);
info->pixmap.addr = kzalloc(8 * 1024, GFP_KERNEL);

if (info->pixmap.addr == NULL)
Expand Down

0 comments on commit ee70fe1

Please sign in to comment.