Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbbGWAi1 (ORCPT ); Wed, 22 Jul 2015 20:38:27 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:29789 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbbGWAiZ (ORCPT ); Wed, 22 Jul 2015 20:38:25 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-9f-55b0377e5c1a Message-id: <55B0377D.10908@samsung.com> Date: Thu, 23 Jul 2015 09:38:21 +0900 From: Krzysztof Kozlowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-version: 1.0 To: Vaibhav Hiremath , linux-arm-kernel@lists.infradead.org Cc: Sangbeom Kim , Michael Turquette , Stephen Boyd , "open list:SAMSUNG MULTIFUNCTION PMIC DEVICE DRIVERS" , "open list:SAMSUNG MULTIFUNCTION PMIC DEVICE DRIVERS" , "open list:COMMON CLK FRAMEWORK" Subject: Re: [PATCH] clk: s2mps11: Use kcalloc instead of kzalloc for array allocation References: <1437557693-29433-1-git-send-email-vaibhav.hiremath@linaro.org> In-reply-to: <1437557693-29433-1-git-send-email-vaibhav.hiremath@linaro.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t/xq7p15htCDZ50KVm8fmFosenxNVaL jz33WC0u75rDZjHj/D4mi4unXC0urvjCZPHjTDeLxfWrG1kcOD3e32hl97jc18vkcefaHjaP zUvqPfq2rGL0+LxJLoAtissmJTUnsyy1SN8ugSvj/tRLzAWP2CpWXD3B0sC4kbWLkZNDQsBE on/PUjYIW0ziwr31YLaQwFJGiW2fPSDsL4wSb96DxXkFNCRWLd4H1ssioCqx7+5/RhCbTcBY YvPyJWA1ogIREstXn2SEqBeU+DH5HguILSIQJbFr31n2LkYuDmaBr0wSfdPWAhVxcAgDNbQc C4XY5S3x5lU32BxOAR+J38cfs4OUMAvoSdy/qAUSZhaQl9i85i3zBEaBWUg2zEKomoWkagEj 8ypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkLD/soNx8TGrQ4wCHIxKPLwTjq4LFWJNLCuu zD3EKMHBrCTCWyGyIVSINyWxsiq1KD++qDQntfgQozQHi5I479xd70OEBNITS1KzU1MLUotg skwcnFINjFZMGWlM665/+37ykCuP35cbzRHtm369Cvy6lFXET7nuV3V43hW2oqip4T9+hzhH i7TsTGKrv/fY/9kFS6fzD9hq9ds/3iw5O2FBz/kVfB3nZ67b9GZOmFiUgp7ostP/VITUJz29 H1OzIPXw4cmcpxWCCtfKi4QG1uw1PsB0ToCTNY15V+v7FiWW4oxEQy3mouJEAIP7Ksx3AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1085 Lines: 31 On 22.07.2015 18:34, Vaibhav Hiremath wrote: > This patch cleans up the driver for, > > - Use devm_kcalloc varient instead of devm_kzalloc for array > allocation. > - clk_prepare/unprepare, remove "ret" variable as it is not required > - use __exit for cleanup function > > As I am referring this driver as a reference for my 88pm800 clk driver, > applying same changes here as well. > > Signed-off-by: Vaibhav Hiremath > --- > Since I do not have platform to test, it would be helpful if someone > tests it for me. > I have build tested it. > > drivers/clk/clk-s2mps11.c | 18 +++++++----------- > 1 file changed, 7 insertions(+), 11 deletions(-) Looks good, simplifies the code and fixes the __init/__exit. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/