From patchwork Tue Sep 2 02:50:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4822631 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 497EEC0338 for ; Tue, 2 Sep 2014 02:50:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DE3220172 for ; Tue, 2 Sep 2014 02:50:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A50D420155 for ; Tue, 2 Sep 2014 02:50:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbaIBCuu (ORCPT ); Mon, 1 Sep 2014 22:50:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:34542 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbaIBCut (ORCPT ); Mon, 1 Sep 2014 22:50:49 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB900IDK6KOHR90@mailout1.samsung.com> for linux-spi@vger.kernel.org; Tue, 02 Sep 2014 11:50:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id E4.80.02948.88035045; Tue, 02 Sep 2014 11:50:48 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-ba-5405308868ba Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 17.10.04943.88035045; Tue, 02 Sep 2014 11:50:48 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB900GSP6KOT390@mmp1.samsung.com>; Tue, 02 Sep 2014 11:50:48 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, =?iso-8859-2?Q?'Marek_Va=B9ut'?= , 'Jingoo Han' References: <002101cfc658$4f627cf0$ee2776d0$%han@samsung.com> In-reply-to: <002101cfc658$4f627cf0$ee2776d0$%han@samsung.com> Subject: [PATCH 4/9] spi: spi-mxs: Fix checkpatch issue Date: Tue, 02 Sep 2014 11:50:48 +0900 Message-id: <002401cfc658$b32398f0$196acad0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-2 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/GWEr6KtXvbZQZQNOh58P4064PRQAAFURw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsVy+t8zfd0OA9YQg6Z7khZTHz5hs7i88BKr RePHm+wWb9oaGR1YPObNOsHisWlVJ5tH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVwZRzresFa MJ2zou/KCcYGxn3sXYycHBICJhL71txlg7DFJC7cWw9kc3EICSxjlJhxqBWu6Hv/CyaIxCJG iRfn3zBDOL8ZJf6euwbWziagJvHly2GgDg4OEQFVif+v3EHCzALlEj8v3mABCQsJ2ErsaqoB CXMK2El0T+oCmy8sYC5xuf0nE4jNAtS55NATZhCbF6i8rXkBC4QtKPFj8j2wMcwCOhJfJ0VA TJeX2LzmLTNIWEJAXeLRX12QsIiAkcSVJ4/YIUpEJPa9eMcIcrCEwCl2iS/vLkOtEpD4NvkQ C0SvrMSmA8wQ30pKHFxxg2UCo8QsJItnISyehWTxLCQbFjCyrGIUTS1ILih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NTqoFx/3OhJTrSXy+xzNVw //04a7l1+RQNfZ4bmQ3sJjvDL4edtbL9tiWudcXsjOfr7hlUvsz0kKjZvdj31KrTMz1KpabE hl30LE5yXCHpffFUavAmzVk5q9YaK5k6HimZYdn+I/9qv/Mym8L33zZIMs8uWDrRl2u2+J7+ lWuWNU6p/lE25xqnzjIbJZbijERDLeai4kQAfus3cAwDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the following checkpatch warnings. WARNING: Missing a blank line after declarations WARNING: Prefer kcalloc over kzalloc with multiply Signed-off-by: Jingoo Han Acked-by: Marek Vasut --- drivers/spi/spi-mxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 2884f0c2f5f0..c3f8d3a22472 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -154,12 +154,14 @@ static int mxs_ssp_wait(struct mxs_spi *spi, int offset, int mask, bool set) static void mxs_ssp_dma_irq_callback(void *param) { struct mxs_spi *spi = param; + complete(&spi->c); } static irqreturn_t mxs_ssp_irq_handler(int irq, void *dev_id) { struct mxs_ssp *ssp = dev_id; + dev_err(ssp->dev, "%s[%i] CTRL1=%08x STATUS=%08x\n", __func__, __LINE__, readl(ssp->base + HW_SSP_CTRL1(ssp)), @@ -189,7 +191,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi, if (!len) return -EINVAL; - dma_xfer = kzalloc(sizeof(*dma_xfer) * sgs, GFP_KERNEL); + dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); if (!dma_xfer) return -ENOMEM;