From patchwork Mon Nov 25 07:15:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3228151 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 213879F3A0 for ; Mon, 25 Nov 2013 07:15:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3C7E2022F for ; Mon, 25 Nov 2013 07:15:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 976252025B for ; Mon, 25 Nov 2013 07:15:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751738Ab3KYHPQ (ORCPT ); Mon, 25 Nov 2013 02:15:16 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:43853 "EHLO mail-bk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3KYHPQ (ORCPT ); Mon, 25 Nov 2013 02:15:16 -0500 Received: by mail-bk0-f41.google.com with SMTP id v15so1752263bkz.0 for ; Sun, 24 Nov 2013 23:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=UqIwrbnFkdTIjenzt6ENQyNJnWJDs3zEyM54X3lBlVQ=; b=xEfQ27WPmUgXKbSBKZBFnaD7OOJcB4MYvcJzs4+c4T2Tn5mof6hnWojtYeEkai3w+I gXDqRifY5T4W+TqNdz9JiUGG9hn070X77WKybX4Cs1wanHM28dHHrQqjcYEv2FF+5KWa cAA0tkOHxVFvdH56ca1zFLWNfPUaWWmDmckJ2GU++Esi/SpL7vPpkonrBY/pEfcDAr0O 4Rf2XOlcjAw3gajhb3wOr4Nc2o7KJTXTgdefZBJbemr9s7csYwrDbwm0v+4MrjLmNY15 tCWezlHd8cR4DCI28ja8s+hYMBxXa8phKYnAR1Tn2EAxFKHRprp6ujHrS7O4srxLtqTD Osyw== MIME-Version: 1.0 X-Received: by 10.205.78.131 with SMTP id zm3mr58492bkb.63.1385363714619; Sun, 24 Nov 2013 23:15:14 -0800 (PST) Received: by 10.204.74.130 with HTTP; Sun, 24 Nov 2013 23:15:14 -0800 (PST) Date: Mon, 25 Nov 2013 15:15:14 +0800 Message-ID: Subject: [PATCH] dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe() From: Wei Yongjun To: dan.j.williams@intel.com, vinod.koul@intel.com, grant.likely@linaro.org, rob.herring@calxeda.com Cc: yongjun_wei@trendmicro.com.cn, dmaengine@vger.kernel.org Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: Wei Yongjun Add missing platform_set_drvdata() in mmp_pdma_probe(), otherwise calling platform_get_drvdata() in mmp_pdma_remove() returns NULL. Signed-off-by: Wei Yongjun --- drivers/dma/mmp_pdma.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index dcb1e05..8869500 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c @@ -1017,6 +1017,7 @@ static int mmp_pdma_probe(struct platform_device *op) } } + platform_set_drvdata(op, pdev); dev_info(pdev->device.dev, "initialized %d channels\n", dma_channels); return 0; }