From patchwork Fri Sep 20 06:32:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915401 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 CF00E9F1F1 for ; Fri, 20 Sep 2013 06:32:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAFB3202C8 for ; Fri, 20 Sep 2013 06:32:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACC3A202C3 for ; Fri, 20 Sep 2013 06:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754046Ab3ITGcr (ORCPT ); Fri, 20 Sep 2013 02:32:47 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:43359 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753764Ab3ITGcq (ORCPT ); Fri, 20 Sep 2013 02:32:46 -0400 Received: by mail-pa0-f44.google.com with SMTP id fz6so346035pac.3 for ; Thu, 19 Sep 2013 23:32:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CPjdK5bxf8N27XeSSgsERVLfcIY1OIWbIR3nZYdyRiA=; b=Afl95IdpOSGs+Qxmn2WIrBgiBtT/S4GL6YwZj2iC9wWvLbzNEASFE64BN9M0wsowTd QekWa/qTb9c5HcF/3UeB3r3p2sl3Gvoi9tnVOWIDJMG7U3syVXMBqlrAzI9ex95m0rMS XsI/wxXPLAhVXRy3V66OBKualQ/GQ35FTeCp3iCWN5v9d8qFcIPw77UWSU+RIla8nlRH sERwMdvPitaWj+Vyi81rjm58dSnOY60fHdu1XIfHWkHkWM+fETFnlOnKqrXGaCM7gO2D UhSu1aBDmusajfvTBReSbHYAe4j7MQgIjq4qrSA7FcdZg91UDAX0Gma5oXx2uDr0B+nX /tcQ== X-Gm-Message-State: ALoCoQlN66zGByrWivDT+knk9f0y+47tdbXBTBFeeJIU7WUMTIpIODC6VZorz/IfKPLjhfvTWoBB X-Received: by 10.68.171.193 with SMTP id aw1mr6112707pbc.131.1379658766434; Thu, 19 Sep 2013 23:32:46 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id gh9sm13542197pbc.40.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 23:32:46 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, sachin.kamat@linaro.org Subject: [PATCH 15/15] video: xilinxfb: Remove redundant dev_set_drvdata Date: Fri, 20 Sep 2013 12:02:24 +0530 Message-Id: <1379658744-17113-16-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379658744-17113-1-git-send-email-sachin.kamat@linaro.org> References: <1379658744-17113-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 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 Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat --- drivers/video/xilinxfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 84c664e..0e1dd33 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -369,7 +369,6 @@ err_fbmem: err_region: kfree(drvdata); - dev_set_drvdata(dev, NULL); return rc; } @@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev) #endif kfree(drvdata); - dev_set_drvdata(dev, NULL); return 0; }