Skip to content

Commit

Permalink
[MTD] plat-ram: Make it usable on non ARM platforms
Browse files Browse the repository at this point in the history
Use memset instead of ARM only memzero function

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 23, 2005
1 parent cc71229 commit a921e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/maps/plat-ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generic platfrom device based RAM map
*
* $Id: plat-ram.c,v 1.2 2005/03/14 20:33:19 bjd Exp $
* $Id: plat-ram.c,v 1.3 2005/03/19 22:41:27 gleixner Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -153,7 +153,7 @@ static int platram_probe(struct device *dev)
goto exit_error;
}

memzero(info, sizeof(*info));
memset(info, 0, sizeof(*info));
dev_set_drvdata(dev, info);

info->dev = dev;
Expand Down

0 comments on commit a921e28

Please sign in to comment.