OSDN Git Service

pinctrl: allocate sizeof(*p) instead of sizeof(struct foo)
authorStephen Warren <swarren@nvidia.com>
Wed, 22 Feb 2012 21:26:00 +0000 (14:26 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Feb 2012 05:28:56 +0000 (06:28 +0100)
commit02f5b98951c631a3c4b3cc398dd2b14d274a6155
tree357c026f464d5790833630eac6ac9bc78d4d2bf9
parent95dcd4aea57f1d449305f3032240bba0a839593b
pinctrl: allocate sizeof(*p) instead of sizeof(struct foo)

This hopefully makes it harder to take the sizeof the wrong type.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
drivers/pinctrl/pinmux.c