linux_dsm_epyc7002/arch/powerpc/platforms/52xx
Himangi Saraogi 39e69f55f8 powerpc: Introduce the use of the managed version of kzalloc
This patch moves data allocated using kzalloc to managed data allocated
using devm_kzalloc and cleans now unnecessary kfree in probe function.

The following Coccinelle semantic patch was used for making the change:

@platform@
identifier p, probefn, removefn;
@@
struct platform_driver p = {
  .probe = probefn,
  .remove = removefn,
};

@prb@
identifier platform.probefn, pdev;
expression e, e1, e2;
@@
probefn(struct platform_device *pdev, ...) {
  <+...
- e = kzalloc(e1, e2)
+ e = devm_kzalloc(&pdev->dev, e1, e2)
  ...
?-kfree(e);
  ...+>
}

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
2015-10-22 16:13:23 +02:00
..
efika.c powerpc: Convert power off logic to pm_power_off 2014-11-03 12:12:51 +11:00
Kconfig clk: mpc5xxx: switch to COMMON_CLK, retire PPC_CLOCK 2014-01-12 18:53:04 +01:00
lite5200_pm.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
lite5200_sleep.S [POWERPC] MPC5200 low power mode 2007-09-19 15:25:34 +10:00
lite5200.c powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
Makefile gpio: Move mpc5200 gpio driver to drivers/gpio 2011-07-06 11:57:15 -06:00
media5200.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
mpc52xx_common.c powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
mpc52xx_gpt.c powerpc: Introduce the use of the managed version of kzalloc 2015-10-22 16:13:23 +02:00
mpc52xx_lpbfifo.c powerpc: platforms: mpc52xx_lpbfifo: Fix module autoload for OF platform driver 2015-10-22 14:36:53 +02:00
mpc52xx_pci.c PCI: Include <linux/pci.h>, not <asm/pci.h> 2015-06-08 07:55:03 -05:00
mpc52xx_pic.c powerpc/mpc52xx: Use irq_set_handler_locked() 2015-09-16 15:43:10 +02:00
mpc52xx_pm.c suspend: constify platform_suspend_ops 2010-11-16 14:14:02 +01:00
mpc52xx_sleep.S [POWERPC] mpc52xx suspend to deep-sleep 2007-05-07 20:31:15 +10:00
mpc5200_simple.c powerpc: mpc5200: Add a3m071 board support 2012-12-06 22:59:08 +01:00