From patchwork Fri Sep 20 06:32:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915301 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 C1B849F1F1 for ; Fri, 20 Sep 2013 06:32:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96D7E202C3 for ; Fri, 20 Sep 2013 06:32:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5982203AE for ; Fri, 20 Sep 2013 06:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753958Ab3ITGcZ (ORCPT ); Fri, 20 Sep 2013 02:32:25 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:40915 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab3ITGcZ (ORCPT ); Fri, 20 Sep 2013 02:32:25 -0400 Received: by mail-pb0-f53.google.com with SMTP id up15so17524pbc.12 for ; Thu, 19 Sep 2013 23:32:24 -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=nyGVuLQNwd3VqPXjmj36UEp5g4t75JwGAw8G5pz13R4=; b=S88d2JVPMr9ejhTUlJ2OlEvb8OF7dQ43vSrgDYmA9W3W2Kxcp9jgRu5D/xZ4jJmxqM jwhNcr+0O/4hmxs8q4v16GJTfC7UO65Ve9gSVUXZ84TuZvK9pJrufbpPxdwIm7U19MZm 9S3FwE67wseCfh1+wTK33jK53zRmELpVSIE7cbwe2i4K0hamCTQrINZCtK9UgRu1vtFN deDBS74WkokB4WGZX7fj40V17FYeLJUP/hA03FZlblbMzx/zNlhxB8BPA3efaFfJiKfI XAfbpBBTAA039pEgo0LXaipl99flH9wHjmxnKh8MdJqhsLGFNaXGfI0Fedf5b7iITeNJ zVLA== X-Gm-Message-State: ALoCoQlefKTmizxz8AIF6DvVjhPtI8ed624rBWwvu7mTrtxF3puJ6uxZNTNtajMGmNWBTJm3Ij8D X-Received: by 10.68.179.98 with SMTP id df2mr6179589pbc.38.1379658744638; Thu, 19 Sep 2013 23:32:24 -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:24 -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 05/15] video: amifb: Remove redundant dev_set_drvdata Date: Fri, 20 Sep 2013 12:02:14 +0530 Message-Id: <1379658744-17113-6-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/amifb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index a6780ee..8ab304d 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c @@ -3748,7 +3748,6 @@ default_chipset: return 0; unset_drvdata: - dev_set_drvdata(&pdev->dev, NULL); fb_dealloc_cmap(&info->cmap); free_irq: free_irq(IRQ_AMIGA_COPPER, info->par); @@ -3768,7 +3767,6 @@ static int __exit amifb_remove(struct platform_device *pdev) struct fb_info *info = dev_get_drvdata(&pdev->dev); unregister_framebuffer(info); - dev_set_drvdata(&pdev->dev, NULL); fb_dealloc_cmap(&info->cmap); free_irq(IRQ_AMIGA_COPPER, info->par); custom.dmacon = DMAF_ALL | DMAF_MASTER;