From patchwork Thu Oct 3 09:46:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 2981731 Return-Path: X-Original-To: patchwork-linux-mmc@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 EBB77BFF0B for ; Thu, 3 Oct 2013 09:47:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 865FE20304 for ; Thu, 3 Oct 2013 09:47:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB56F20357 for ; Thu, 3 Oct 2013 09:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753856Ab3JCJrP (ORCPT ); Thu, 3 Oct 2013 05:47:15 -0400 Received: from mail-ee0-f49.google.com ([74.125.83.49]:47970 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752871Ab3JCJqz (ORCPT ); Thu, 3 Oct 2013 05:46:55 -0400 Received: by mail-ee0-f49.google.com with SMTP id d41so967525eek.36 for ; Thu, 03 Oct 2013 02:46:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:content-type; bh=Zx5pdh7Np1S0I6OsuFWBQeGMJWnwH2NVg/HV5cT0rss=; b=RLpNASvSlZkVPyX0oWyF2nVpe07D/zgOxMe9KqnPVv8Ol5NDpg72lsNqqIQSTn7yM8 Dj6gbuIZEJGb9/POpv6w7zxIOuuN0gEuxj6ETOCI4SlkfIwxceGgSXQCcHv45Yw6l+oO h9RtJWKv14Tb5dmoST0TfvfpCbe9UIkgZpZYucHyFjdz6+IvX4xikerNZLoDF1JP82oJ +brTXkRmbUsPyOXMB17Ky280DCF4s+U4mVQ2gfBLzCEVoThHhHiZL0f+7aUnQ8/eqPg8 2/ox4SBeU5zxd2/tTAZVUJfVkALDmVrViwqFgiG/K1tUqYNcSnl+4KUIIyyX2eDFvENj Blzw== X-Gm-Message-State: ALoCoQkDIZO6VH3UXPLIDzsf4r1C0FEwoofYwgu+qQNTy6EZyqNxF+brXDQUsuIaez4hH28sgffc X-Received: by 10.15.91.3 with SMTP id r3mr11484813eez.4.1380793613968; Thu, 03 Oct 2013 02:46:53 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id m54sm13730446eex.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 02:46:52 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Russell King , Chris Ball , linux-mmc@vger.kernel.org Subject: [PATCH 4/9] mmc: mmci: Remove unnecessary amba_set_drvdata() Date: Thu, 3 Oct 2013 11:46:26 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> References: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> In-Reply-To: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> References: <27e289763bbcb7d10f84081543cfc3a4dc770398.1380793579.git.michal.simek@xilinx.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, MIME_HEADER_CTYPE_ONLY, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, T_TVD_MIME_NO_HEADERS,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 Driver core clears the driver data to NULL after device_release or on probe failure, so just remove it from here. Driver core change: "device-core: Ensure drvdata = NULL when no driver is bound" (sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d) Signed-off-by: Michal Simek --- drivers/mmc/host/mmci.c | 2 -- 1 file changed, 2 deletions(-) -- 1.8.2.3 diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index c3785ed..07e17f1 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1678,8 +1678,6 @@ static int mmci_remove(struct amba_device *dev) { struct mmc_host *mmc = amba_get_drvdata(dev); - amba_set_drvdata(dev, NULL); - if (mmc) { struct mmci_host *host = mmc_priv(mmc);