diff options
author | Olof Johansson <olof@lixom.net> | 2018-07-05 17:59:20 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-07-05 17:59:20 -0400 |
commit | f0463f3619fd10e0cbaa5195bf2bc264a77a586d (patch) | |
tree | d57e237d59444cf079a29d1656978668aacd04f3 /drivers | |
parent | 6d9d0f1763a90d5980901fd51a046fc02ba58d4c (diff) | |
parent | 0144eb204cdcdf09a76794b4a294291388e739bc (diff) |
Merge tag 'omap-for-v4.18/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Fixes for omap for v4.18-rc cycle
Few dts fixes for regressions for various SoCs and
devices for touchscreen wake, dra7 USB quirk, pinmux
for beaglebone mmc, and emac clock.
Also included is a change for ti-sysc to use kcalloc
that Kees wanted to get into v4.18 as that's the last
one he wanted to fix for improved defense against
allocation overflows.
* tag 'omap-for-v4.18/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: dts: omap3: Fix am3517 mdio and emac clock references
ARM: dts: am335x-bone-common: Fix mmc0 Write Protect
bus: ti-sysc: Use 2-factor allocator arguments
ARM: dts: dra7: Disable metastability workaround for USB2
ARM: dts: am437x: make edt-ft5x06 a wakeup source
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bus/ti-sysc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 1cc29629d238..80d60f43db56 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c | |||
@@ -169,9 +169,9 @@ static int sysc_get_clocks(struct sysc *ddata) | |||
169 | const char *name; | 169 | const char *name; |
170 | int nr_fck = 0, nr_ick = 0, i, error = 0; | 170 | int nr_fck = 0, nr_ick = 0, i, error = 0; |
171 | 171 | ||
172 | ddata->clock_roles = devm_kzalloc(ddata->dev, | 172 | ddata->clock_roles = devm_kcalloc(ddata->dev, |
173 | sizeof(*ddata->clock_roles) * | ||
174 | SYSC_MAX_CLOCKS, | 173 | SYSC_MAX_CLOCKS, |
174 | sizeof(*ddata->clock_roles), | ||
175 | GFP_KERNEL); | 175 | GFP_KERNEL); |
176 | if (!ddata->clock_roles) | 176 | if (!ddata->clock_roles) |
177 | return -ENOMEM; | 177 | return -ENOMEM; |
@@ -200,8 +200,8 @@ static int sysc_get_clocks(struct sysc *ddata) | |||
200 | return -EINVAL; | 200 | return -EINVAL; |
201 | } | 201 | } |
202 | 202 | ||
203 | ddata->clocks = devm_kzalloc(ddata->dev, | 203 | ddata->clocks = devm_kcalloc(ddata->dev, |
204 | sizeof(*ddata->clocks) * ddata->nr_clocks, | 204 | ddata->nr_clocks, sizeof(*ddata->clocks), |
205 | GFP_KERNEL); | 205 | GFP_KERNEL); |
206 | if (!ddata->clocks) | 206 | if (!ddata->clocks) |
207 | return -ENOMEM; | 207 | return -ENOMEM; |