aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-07-31 18:05:24 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 15:22:45 -0400
commit9f2fcf99394b34769e3243a7f42a0ba8d21fc774 (patch)
treea8e4a88b3bf36995f6106dd58a433ad08f254dd7 /drivers/mmc
parenteb6594689226663968ef0a9fd71ec5e1e4e04f9c (diff)
sdio: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio_bus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
index fcb13fb0daad..683d91740109 100644
--- a/drivers/mmc/core/sdio_bus.c
+++ b/drivers/mmc/core/sdio_bus.c
@@ -221,12 +221,10 @@ struct sdio_func *sdio_alloc_func(struct mmc_card *card)
221{ 221{
222 struct sdio_func *func; 222 struct sdio_func *func;
223 223
224 func = kmalloc(sizeof(struct sdio_func), GFP_KERNEL); 224 func = kzalloc(sizeof(struct sdio_func), GFP_KERNEL);
225 if (!func) 225 if (!func)
226 return ERR_PTR(-ENOMEM); 226 return ERR_PTR(-ENOMEM);
227 227
228 memset(func, 0, sizeof(struct sdio_func));
229
230 func->card = card; 228 func->card = card;
231 229
232 device_initialize(&func->dev); 230 device_initialize(&func->dev);