From patchwork Thu Oct 3 09:46:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 2981821 Return-Path: X-Original-To: patchwork-linux-fbdev@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 98D579F288 for ; Thu, 3 Oct 2013 09:49:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3ABFA20161 for ; Thu, 3 Oct 2013 09:49:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E31820322 for ; Thu, 3 Oct 2013 09:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753893Ab3JCJrW (ORCPT ); Thu, 3 Oct 2013 05:47:22 -0400 Received: from mail-ea0-f169.google.com ([209.85.215.169]:35104 "EHLO mail-ea0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753849Ab3JCJrJ (ORCPT ); Thu, 3 Oct 2013 05:47:09 -0400 Received: by mail-ea0-f169.google.com with SMTP id k11so975777eaj.28 for ; Thu, 03 Oct 2013 02:47:08 -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=rmhQKE/WtOvfEGCgk1qqXUmGlacPSUvQcCu8brWpfOE=; b=kBs2VkZZrG5uMAi9s9r59QF5VSuqtZQ3UCZrGFDZ7tQYgiZ9K+xSCa+iS4KEcZCw+H shcq54z7nTkFVtNbfW9btIk3qIQyjcdL3lIw6AGgF3QLEgGYi8k6w7kWa4hMOen6Ho63 SZJOJkNvTjgCsnkdx/7Dh9aK9MSMLN/oeoMmdsUEADC36jzXJOnDf6B/MGE9Xs06n9SW ue+KxuBFwpvmE/mvoQ06vkzOgYpZbNFAxTqI3mnSUI+VR/SXFbVJ7I8sIv/RAalP81EF A0dlRXTN5qYijMF9ZcMPJsii6o+m351u26Lx7On2tPDyaMchqoRKXZvuOUYo/8lccJBu EewQ== X-Gm-Message-State: ALoCoQl7Ao/H1/qj0ovFgE8ZrYrcU/PCi90ubjowbDK0q8QUE/8QifdgwedxyDIBHdSZ8965qXml X-Received: by 10.15.43.206 with SMTP id x54mr1360415eev.79.1380793628570; Thu, 03 Oct 2013 02:47:08 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id a6sm13685562eei.10.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 02:47:07 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Russell King , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev@vger.kernel.org Subject: [PATCH 9/9] video: amba-clcd: Remove unnecessary amba_set_drvdata() Date: Thu, 3 Oct 2013 11:46:31 +0200 Message-Id: <2f12a1d7caba382efe8d361b373da60c08e70622.1380793579.git.michal.simek@xilinx.com> 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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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/video/amba-clcd.c | 2 -- 1 file changed, 2 deletions(-) -- 1.8.2.3 diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 0a2cce7..0bab6ab 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -594,8 +594,6 @@ static int clcdfb_remove(struct amba_device *dev) { struct clcd_fb *fb = amba_get_drvdata(dev); - amba_set_drvdata(dev, NULL); - clcdfb_disable(fb); unregister_framebuffer(&fb->fb); if (fb->fb.cmap.len)