Non critical omap fixes that we not considered necessary
for the v3.6 -rc cycle. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJQUWrJAAoJEBvUPslcq6Vz4O0P/iqs+8V4efsPLBABxWZJhLxt 4LBPwGfawpZfPqbdKLyGj2MoccMCep7wlVK0F5IQM3zAtamOxVehqpWMP5GIeinL 99ZSDqyRSV4DbzokcjH+O7Iovbt3rLsE/LrRGoeCaj3of03OXoeQWsIPpZ9FOHnl D6Aq3y+LuqCj1sI/aYYJSgIGFl9ysmw9ksTWh/CNfBJ4c5QXVF3Nl6Ia3WQMvHyl alfE9VbNnhlabLHtmEAvqel8BEM30dbh7d8Rl1aoCkNFhQdz55qYob/qa8QsMZGD oFsws+HacBMtkhf1/8N+h9fbBqaH3VSRiTxMTXn1PHlIBfRzf1kjNiY6qZfIrJxm OlE4ILgUxawzbAveBFTbiiUSRLTSsbE7yDVLAr6iZNNtk7I6axp1ivtMwwaIhnTW DAdRxfanweDEr6tj2p3rT4nvSN8CdR/NXz9mGkt2wff6odh1sUdzhXBWT8To3X/s OfY8ZoO6AMq8PZIbRO/9meeln1J8/YcPaMrebMv7ZyP79g/u1hZcovUvH0XHrxrB yaWePhid8a8G8BYNiLFyNJMr78Qn2Qm5qpfFmeRAYoGiIpcENgTm2lpTGbWCFFxS lQ5VynamTJLlreEF7oIJsMe6wEA6ziBJ/h632L0G0NaXQqzQeW44TfNs7YjEgaX4 KGLqXbnoaAEK9/6iVDTp =x1dH -----END PGP SIGNATURE----- Merge tag 'omap-fixes-noncritical-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/fixes-non-critical From Tony Lindgren: Non critical omap fixes that we not considered necessary for the v3.6 -rc cycle. * tag 'omap-fixes-noncritical-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP4: wakeupgen: remove duplicate AUXCOREBOOT* read/write ARM: OMAP4: wakeupgen: Fix the typo in AUXCOREBOOT register save gpio/omap: fix possible memory leak in omap2_gpio_dev_init()
This commit is contained in:
commit
20804abdbc
|
@ -60,6 +60,7 @@ static int __init omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
|
|||
pdata->regs = kzalloc(sizeof(struct omap_gpio_reg_offs), GFP_KERNEL);
|
||||
if (!pdata->regs) {
|
||||
pr_err("gpio%d: Memory allocation failed\n", id);
|
||||
kfree(pdata);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
@ -121,6 +122,7 @@ static int __init omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
|
|||
break;
|
||||
default:
|
||||
WARN(1, "Invalid gpio bank_type\n");
|
||||
kfree(pdata->regs);
|
||||
kfree(pdata);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
@ -229,13 +229,7 @@ static inline void omap4_irq_save_context(void)
|
|||
/* Save AuxBoot* registers */
|
||||
val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
|
||||
__raw_writel(val, sar_base + AUXCOREBOOT0_OFFSET);
|
||||
val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
|
||||
__raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET);
|
||||
|
||||
/* Save SyncReq generation logic */
|
||||
val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
|
||||
__raw_writel(val, sar_base + AUXCOREBOOT0_OFFSET);
|
||||
val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
|
||||
val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_1);
|
||||
__raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET);
|
||||
|
||||
/* Save SyncReq generation logic */
|
||||
|
|
Loading…
Reference in New Issue