A series of omap1 changes for issues found by Coccinelle.
-----BEGIN PGP SIGNATURE----- iQJFBAABCAAvFiEEkgNvrZJU/QSQYIcQG9Q+yVyrpXMFAllBEAYRHHRvbnlAYXRv bWlkZS5jb20ACgkQG9Q+yVyrpXPyAg//cVN2J5dZEMnIQmyUhIoL20KXfprsujyy +qYyD5vhxpBvmo09ZqF3CqjQX3x8b2Y0rK9NnVeSmn/3W4U+pEyzMo8ml7j8Sx+C S85Ngykvp9t1AU9pfkrb27CHugstPA+ctVrtWABrUQqriKWtNaCt//FyaK0p3he/ btrOpOsQ9K+TSDRbMdP6+ggWe2NYTkhj4rhsObu+PedWhsbj6AhELqHprzIxxCQl ZPZxW4kNALUbnfie0QYrNJi+g0+RKA3y6ZS17KSnLw48jPj6+t4u3bimq9PR44/4 r8qN0dAWr74ObDJMZevz6xV/ArrW2eRU4jKXvovWxlebs1oGqdGeUH/sHUz2QSg7 l7fV3/VYeIA5n70ON2PEIpeiCLK9tVa9f8CCnEPOAdGafLaoQdKbM/udzis3N328 LmPzhU6zVsNrF/Iqc8mglvfET4Dy+FL5MoKZd7ffyYZn8J+1lM6SO577DzPKM/n0 9uyLuKkpHfLu4DP2Uyws5eu6XM+RhaCJbV9+amh0YZjWbep/q1X1UcZfr5uBuUQt bsyhr7cbW0rK9mS+baFl49xNWw+A29b0XCDfJ3VhEA0d8MBAkHH6yzHwZvwhuobz IzRerNrqxIq4Gi104f8vzExpmgt0lmlPx1tncPFUcfsw33I8mdox0aBI8aQLuX40 ILL3eT1xkgs= =edS7 -----END PGP SIGNATURE----- Merge tag 'omap-for-v4.13/omap1-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/soc A series of omap1 changes for issues found by Coccinelle. * tag 'omap-for-v4.13/omap1-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP1: Fix a typo in a comment line ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_init() ARM: OMAP1: DMA: Delete an unnecessary return statement in omap1_show_dma_caps() ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init() ARM: OMAP1: DMA: Improve a size determination in omap1_system_dma_init() Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
92042d292d
|
@ -240,7 +240,6 @@ static void omap1_show_dma_caps(void)
|
||||||
w |= 1 << 3;
|
w |= 1 << 3;
|
||||||
dma_write(w, GSCR, 0);
|
dma_write(w, GSCR, 0);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned configure_dma_errata(void)
|
static unsigned configure_dma_errata(void)
|
||||||
|
@ -339,10 +338,8 @@ static int __init omap1_system_dma_init(void)
|
||||||
goto exit_iounmap;
|
goto exit_iounmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
d = kzalloc(sizeof(struct omap_dma_dev_attr), GFP_KERNEL);
|
d = kzalloc(sizeof(*d), GFP_KERNEL);
|
||||||
if (!d) {
|
if (!d) {
|
||||||
dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
|
|
||||||
__func__, pdev->name);
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto exit_iounmap;
|
goto exit_iounmap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Contains first level initialization routines which internally
|
* Contains first level initialization routines which internally
|
||||||
* generates timer device information and registers with linux
|
* generates timer device information and registers with linux
|
||||||
* device model. It also has low level function to chnage the timer
|
* device model. It also has a low level function to change the timer
|
||||||
* input clock source.
|
* input clock source.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
||||||
|
@ -134,8 +134,6 @@ static int __init omap1_dm_timer_init(void)
|
||||||
|
|
||||||
pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
|
pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
|
||||||
if (!pdata) {
|
if (!pdata) {
|
||||||
dev_err(&pdev->dev, "%s: Failed to allocate pdata.\n",
|
|
||||||
__func__);
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto err_free_pdata;
|
goto err_free_pdata;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue