From patchwork Fri Feb 21 01:11:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3692961 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 CF377BF40C for ; Fri, 21 Feb 2014 01:11:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D0C220173 for ; Fri, 21 Feb 2014 01:11:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47F9B2017B for ; Fri, 21 Feb 2014 01:11:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757052AbaBUBLQ (ORCPT ); Thu, 20 Feb 2014 20:11:16 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:54174 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757042AbaBUBLM (ORCPT ); Thu, 20 Feb 2014 20:11:12 -0500 Received: by mail-pa0-f41.google.com with SMTP id fa1so2719001pad.14 for ; Thu, 20 Feb 2014 17:11:11 -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=gblA4bdubTBDS7D+4D3nfYUxnNrQI5Br7LA3+bb7PcuygwygkfOgS8P9ZqzH0kChtU XsD0Le/p9b1R3bEqPAy4CvXeqmv9y9UTIs3iNRH0BuVfKuZwm2xl4Hg1jwfSs4kEwkoR kdUT3lmePjwiXwGu+xzgv/nZPJwCk174KvlE8Yy5rgiunuGtueQ3C1oWCtyBTSNpHUvw kXBHXXcT3yOY/VlWPKfYFQZpkRtCG3jXOsMypKWIBNxmUu09zrxwUh7NXZ+AK546/phj LI27lYzICBOvszuqN24beoAM/Za60lLoiym35xpkX9SQ6uOOd0ffiet5hrtWSiIBLCPl RVdQ== X-Gm-Message-State: ALoCoQkn1SS85AKniiZpOBJIypTIrqpBaSn2EdmW5ZwF6IVTcLHNVgmyIVfcVrE+A1lyIdSaQMqg X-Received: by 10.69.20.139 with SMTP id hc11mr5619370pbd.63.1392945071602; Thu, 20 Feb 2014 17:11:11 -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 ns7sm15406402pbc.32.2014.02.20.17.11.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 17:11:10 -0800 (PST) Message-ID: <1392945066.4125.2.camel@phoenix> Subject: [PATCH 1/2] spi: dup: 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:11:06 +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 Acked-by: Ivan T. Ivanov --- 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; }