Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374775
b: refs/heads/master
c: b60c724
h: refs/heads/master
i:
  374773: cc0a715
  374771: 51154a6
  374767: 822dd04
v: v3
  • Loading branch information
Sachin Kamat authored and David Woodhouse committed Apr 5, 2013
1 parent 5763fc3 commit 049285a
Show file tree
Hide file tree
Showing 2 changed files with 2 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: c4f8cde8343ace075fb3dae2d5bc796cdfaffbfd
refs/heads/master: b60c7243863fd2a5059d2c3137ed31b797cd7848
5 changes: 1 addition & 4 deletions trunk/drivers/mtd/nand/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ static int gpio_nand_remove(struct platform_device *dev)
if (gpio_is_valid(gpiomtd->plat.gpio_rdy))
gpio_free(gpiomtd->plat.gpio_rdy);

kfree(gpiomtd);

return 0;
}

Expand Down Expand Up @@ -297,7 +295,7 @@ static int gpio_nand_probe(struct platform_device *dev)
if (!res0)
return -EINVAL;

gpiomtd = kzalloc(sizeof(*gpiomtd), GFP_KERNEL);
gpiomtd = devm_kzalloc(&dev->dev, sizeof(*gpiomtd), GFP_KERNEL);
if (gpiomtd == NULL) {
dev_err(&dev->dev, "failed to create NAND MTD\n");
return -ENOMEM;
Expand Down Expand Up @@ -412,7 +410,6 @@ static int gpio_nand_probe(struct platform_device *dev)
iounmap(gpiomtd->nand_chip.IO_ADDR_R);
release_mem_region(res0->start, resource_size(res0));
err_map:
kfree(gpiomtd);
return ret;
}

Expand Down

0 comments on commit 049285a

Please sign in to comment.