Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5718330ybl; Tue, 14 Jan 2020 13:50:45 -0800 (PST) X-Google-Smtp-Source: APXvYqy2DX+fX8MbyZh31hYDcqJyRHBmm5UEj2OBMy4krjjTA+LuAPFX+1C9XUhJfgXMMUHUAFoK X-Received: by 2002:a9d:ed5:: with SMTP id 79mr385217otj.72.1579038644943; Tue, 14 Jan 2020 13:50:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579038644; cv=none; d=google.com; s=arc-20160816; b=wVnAKvi4Z2z9lrKjIpPUuY/MDlOWu13jGxB3sSf3P9rK2igSw8ZI8nbhYR42MNNlxR aU6sVry7XjHab2orjeiy5cp4YcTU8XzW/eprqvQqsh+BDyhcB/G++jjt3h1BPvNj8Jgt rqGjjjpTz5v1V/x+RJyLLEnbc7ZO/7JQE5xyr7GxXgv8b3KWtmVm5PWvWLBm7cZ6IRv5 zZk7Id8OtpG0sya7V/ddLvNneT4xu+vVRpbANL1JPqwWN9aOb+Wgz7pmJjpMayiqpiRL YU59EHYZS0HWelwNCFv2gjvjmvRT9sB3MIPDSosK2q2iDgGhWJnGgg+1i2alFnm8DRXl eOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=olCfL/Y7a2BLpOXudwE16DjbDEie8c9pU2eejux6CTk=; b=svR5CGAYKIY1ZsVsnp0rNCwiTnVC1mzAD/yjiwWRLSwyHHimtV/6sWCURlBW8WCKLD L4IVJ5Dch5CsgMhPT+Y1Dxvzoqg/jLew6pygjWPcre4Nc4easjUSLqPy4Ju04oJCY/q2 8ZCoway8SXaYxBSg+S2HpDSBTF6vD9xrka90zPdACJiEonH6kzIBpLDVk2BczvCE7W5D yC/V88wcamz99kXer/4XCUhVn0OUl4ZhKy1wox88EiX8Oc0l8uSKc/HurUZWxMrBf6Kk AY9vS2J08bPtUR73t5lmzo44t9OspMnhGsJXuvtXII2RkpbmTfJtELQZJ6YjHqnudmY6 rTxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si8062739oic.40.2020.01.14.13.50.30; Tue, 14 Jan 2020 13:50:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbgANVsX (ORCPT + 99 others); Tue, 14 Jan 2020 16:48:23 -0500 Received: from inva020.nxp.com ([92.121.34.13]:55646 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgANVsW (ORCPT ); Tue, 14 Jan 2020 16:48:22 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 334DD1A0519; Tue, 14 Jan 2020 22:48:21 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 330881A0201; Tue, 14 Jan 2020 22:48:15 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id AAB41402A8; Wed, 15 Jan 2020 05:48:07 +0800 (SGT) From: Han Xu To: vkoul@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, esben@geanix.com, boris.brezillon@collabora.com Cc: festevam@gmail.com, linux-imx@nxp.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, han.xu@nxp.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dmaengine: mxs: change the way to register probe function Date: Wed, 15 Jan 2020 05:43:58 +0800 Message-Id: <1579038243-28550-2-git-send-email-han.xu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1579038243-28550-1-git-send-email-han.xu@nxp.com> References: <1579038243-28550-1-git-send-email-han.xu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org change the way to register probe function for mxs-dma Signed-off-by: Han Xu --- drivers/dma/mxs-dma.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 3039bba0e4d5..9deaaf4fc58f 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -760,7 +760,7 @@ static struct dma_chan *mxs_dma_xlate(struct of_phandle_args *dma_spec, ofdma->of_node); } -static int __init mxs_dma_probe(struct platform_device *pdev) +static int mxs_dma_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; const struct platform_device_id *id_entry; @@ -869,10 +869,7 @@ static struct platform_driver mxs_dma_driver = { .of_match_table = mxs_dma_dt_ids, }, .id_table = mxs_dma_ids, + .probe = mxs_dma_probe, }; -static int __init mxs_dma_module_init(void) -{ - return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe); -} -subsys_initcall(mxs_dma_module_init); +module_platform_driver(mxs_dma_driver); -- 2.17.1