From patchwork Fri Feb 21 01:33:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3693071 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 72F98BF13A for ; Fri, 21 Feb 2014 01:33:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4D7C20173 for ; Fri, 21 Feb 2014 01:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7D7B2017B for ; Fri, 21 Feb 2014 01:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754712AbaBUBdW (ORCPT ); Thu, 20 Feb 2014 20:33:22 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:47845 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754655AbaBUBdW (ORCPT ); Thu, 20 Feb 2014 20:33:22 -0500 Received: by mail-pb0-f50.google.com with SMTP id rq2so2728986pbb.9 for ; Thu, 20 Feb 2014 17:33:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=xxXchlx/3gHVGmSpZ/IKppodv2qm+VpP4ldC0J5H9gQ=; b=Hg4LP0u6F4IZ1galKax0W7jSuZaqr5aC/nCAbJsIQhs+Nn1AsUQXxIxxEBCUHJ4+09 QyPmehmY1CoVs8vnTLf4hlrDJJdMF1Evto1cLvnVBvABYGjckTWiY38crCVGIBFDxaxZ ZUrmBaasm1Ll8qCkmKg8dqMXy1gmfTZ4kjjuz/Nx/QyzuwlZZ6Ps1xhrSUZQZJcA/SA/ usniPlGriiMGxEctsVYvZioJIKeSmFmkxGCILiItTin0bUWXt8E4p7CdY98OaZYvetKW E2RYFaTQkMByA3uPocZ/uTx2mwktEUIKK/GkNQ2u2zdOoYkD6EWmG2vnoHI343D4SyHN PcWA== X-Gm-Message-State: ALoCoQkRdhpmF/jsfnY7C28jZckrTH1m30SLA+YnXj01dGbfGZz6hMnWP3hDrofGyQA0lj4a0O6Z X-Received: by 10.66.217.133 with SMTP id oy5mr5963348pac.46.1392946401703; Thu, 20 Feb 2014 17:33:21 -0800 (PST) Received: from [192.168.1.102] (111-240-52-24.dynamic.hinet.net. [111.240.52.24]) by mx.google.com with ESMTPSA id qs1sm15589264pbb.18.2014.02.20.17.33.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 17:33:19 -0800 (PST) Message-ID: <1392946396.11510.1.camel@phoenix> Subject: [RESEND][PATCH 1/2] spi: qup: Remove spi_master_put in spi_qup_remove From: Axel Lin To: Mark Brown Cc: "Ivan T. Ivanov" , linux-spi@vger.kernel.org Date: Fri, 21 Feb 2014 09:33:16 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 This driver uses devm_spi_register_master() so don't explicitly call spi_master_put() in spi_qup_remove(). Signed-off-by: Axel Lin --- drivers/spi/spi-qup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index b0bcc09..5edc56f 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -802,7 +802,6 @@ static int spi_qup_remove(struct platform_device *pdev) pm_runtime_put_noidle(&pdev->dev); pm_runtime_disable(&pdev->dev); - spi_master_put(master); return 0; }