pinctrl: lynxpoint: Use standard pattern for memory allocation
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Nov 2019 16:26:35 +0000 (18:26 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Dec 2019 14:48:48 +0000 (16:48 +0200)
commita718e68ede16957e091ee8f35f7b73765e51a092
tree3ee6aa8fd04ccbd63dbab77df8847620c485e580
parentcaedcbd053bca446f8d66faf74adeb8eb3d2913f
pinctrl: lynxpoint: Use standard pattern for memory allocation

The pattern
foo = kmalloc(sizeof(*foo), GFP_KERNEL);
has an advantage when foo type is changed. Since we are planning a such,
better to be prepared by using standard pattern for memory allocation.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-lynxpoint.c