Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338359
b: refs/heads/master
c: 59c2e85
h: refs/heads/master
i:
  338357: e15f440
  338355: 136f9be
  338351: f0a7c0f
v: v3
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Oct 24, 2012
1 parent b3d0485 commit 2829e0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 54ec52b6dd3b0ba4bc4eb97e7e1b2534705b326c
refs/heads/master: 59c2e855e43735f4ab93b8b8db96206219f6c1d4
8 changes: 4 additions & 4 deletions trunk/drivers/tty/serial/vt8500_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,6 @@ static int __devinit vt8500_serial_probe(struct platform_device *pdev)
if (!mmres || !irqres)
return -ENODEV;

vt8500_port = kzalloc(sizeof(struct vt8500_port), GFP_KERNEL);
if (!vt8500_port)
return -ENOMEM;

if (np)
port = of_alias_get_id(np, "serial");
if (port > VT8500_MAX_PORTS)
Expand All @@ -593,6 +589,10 @@ static int __devinit vt8500_serial_probe(struct platform_device *pdev)
return -EBUSY;
}

vt8500_port = kzalloc(sizeof(struct vt8500_port), GFP_KERNEL);
if (!vt8500_port)
return -ENOMEM;

vt8500_port->uart.type = PORT_VT8500;
vt8500_port->uart.iotype = UPIO_MEM;
vt8500_port->uart.mapbase = mmres->start;
Expand Down

0 comments on commit 2829e0b

Please sign in to comment.