Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325378
b: refs/heads/master
c: 9f6fe04
h: refs/heads/master
v: v3
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Sep 17, 2012
1 parent 01017cd commit 35c7efe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: d459a03b90ae2895d0726b9a6f5147efa30ca11f
refs/heads/master: 9f6fe04326da5036ab0d01553eacabe9b21d47ae
10 changes: 4 additions & 6 deletions trunk/drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static struct fb_var_screeninfo smtcfb_var = {
};

static struct fb_fix_screeninfo smtcfb_fix = {
.id = "sm712fb",
.id = "smXXXfb",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_TRUECOLOR,
.line_length = 800 * 3,
Expand Down Expand Up @@ -681,7 +681,7 @@ static struct fb_ops smtcfb_ops = {
/*
* alloc struct smtcfb_info and assign the default value
*/
static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev, char *name)
static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
{
struct smtcfb_info *sfb;

Expand All @@ -698,7 +698,6 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev, char *name)
sfb->fb.fbops = &smtcfb_ops;

sfb->fb.fix = smtcfb_fix;
strcpy(sfb->fb.fix.id, name);

sfb->fb.var = smtcfb_var;

Expand Down Expand Up @@ -781,7 +780,6 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
{
struct smtcfb_info *sfb;
u_long smem_size = 0x00800000; /* default 8MB */
char name[16];
int err;
unsigned long pFramebufferPhysical;

Expand All @@ -791,9 +789,9 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
if (err)
return err;

sprintf(name, "sm%Xfb", ent->device);
sprintf(smtcfb_fix.id, "sm%Xfb", ent->device);

sfb = smtc_alloc_fb_info(pdev, name);
sfb = smtc_alloc_fb_info(pdev);

if (!sfb) {
err = -ENOMEM;
Expand Down

0 comments on commit 35c7efe

Please sign in to comment.