Skip to content

Commit

Permalink
[ARM] 3721/1: Small cleanup for locomo.c
Browse files Browse the repository at this point in the history
Patch from Pavel Machek

Cleanup locomo.c.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Pavel Machek authored and Russell King committed Jul 11, 2006
1 parent 7c3dec0 commit 7a2c302
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/common/locomo.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info)
goto out;
}

strncpy(dev->dev.bus_id,info->name,sizeof(dev->dev.bus_id));
strncpy(dev->dev.bus_id, info->name, sizeof(dev->dev.bus_id));
/*
* If the parent device has a DMA mask associated with it,
* propagate it down to the children.
Expand Down Expand Up @@ -729,7 +729,6 @@ __locomo_probe(struct device *me, struct resource *mem, int irq)

for (i = 0; i < ARRAY_SIZE(locomo_devices); i++)
locomo_init_one_child(lchip, &locomo_devices[i]);

return 0;

out:
Expand Down

0 comments on commit 7a2c302

Please sign in to comment.