提交 a921e28b 编写于 作者: T Thomas Gleixner 提交者: Thomas Gleixner

[MTD] plat-ram: Make it usable on non ARM platforms

Use memset instead of ARM only memzero function
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 cc71229f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Generic platfrom device based RAM map * 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 * 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 * it under the terms of the GNU General Public License as published by
...@@ -153,7 +153,7 @@ static int platram_probe(struct device *dev) ...@@ -153,7 +153,7 @@ static int platram_probe(struct device *dev)
goto exit_error; goto exit_error;
} }
memzero(info, sizeof(*info)); memset(info, 0, sizeof(*info));
dev_set_drvdata(dev, info); dev_set_drvdata(dev, info);
info->dev = dev; info->dev = dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册