From patchwork Fri Sep 20 06:32:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915291 Return-Path: X-Original-To: patchwork-linux-fbdev@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 C7B5ABFF05 for ; Fri, 20 Sep 2013 06:32:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02E9A202C8 for ; Fri, 20 Sep 2013 06:32:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C4ECB202C3 for ; Fri, 20 Sep 2013 06:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753950Ab3ITGcX (ORCPT ); Fri, 20 Sep 2013 02:32:23 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:46225 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab3ITGcX (ORCPT ); Fri, 20 Sep 2013 02:32:23 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so18416pbb.6 for ; Thu, 19 Sep 2013 23:32:22 -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=+NJ3LehJhSq4LVb1NC1nO0/uYXjz/iHmiGJBfMPeb6o=; b=aVKAaFWWbVWDl84lQnD3RD6jXMk4IM12Kl3qUWdkFdd4FmT3u4Xfhr8TKJvKiO8z/D ieEUAwVOUj8D5KrQfIGbzNpqfAKAOkye/QDVqXV1Js84/sifUUk4Gb0wQ1fhfxgU/wUe ogN7e5G//7Ia3eTuL6Qnk5b2e2u+oECEh/4czTDfKj+HoLTAi/oMu35dsvWVLFGQp5bC F33L7KVCdDXPXHSiofXY4qetp13lgIgyHbVejAMciV7m3ERxdGJ32ICJKUgYeLTtRgwM 9NoeD9QP408nWOPpoELqrwA4JRupPAsGf0bW+4E2j0h122BbnW5nwMateoA6K37y7gSR w+Vg== X-Gm-Message-State: ALoCoQnK+Gl79OosHHM0SkB7YCB9H+Rj50BUTxt+zu6d28DxjmGB6AN1MT+60xXD+ARLPvMUJ2+e X-Received: by 10.68.180.225 with SMTP id dr1mr6206161pbc.126.1379658742618; Thu, 19 Sep 2013 23:32:22 -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:22 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, sachin.kamat@linaro.org, Anatolij Gustschin Subject: [PATCH 04/15] video: mb862xx: Remove redundant dev_set_drvdata Date: Fri, 20 Sep 2013 12:02:13 +0530 Message-Id: <1379658744-17113-5-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 Cc: Anatolij Gustschin Acked-by: Anatolij Gustschin --- drivers/video/mb862xx/mb862xxfbdrv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/mb862xx/mb862xxfbdrv.c b/drivers/video/mb862xx/mb862xxfbdrv.c index 98d2f8c..0cd4c33 100644 --- a/drivers/video/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/mb862xx/mb862xxfbdrv.c @@ -781,7 +781,6 @@ rel_reg: irqdisp: irq_dispose_mapping(par->irq); fbrel: - dev_set_drvdata(dev, NULL); framebuffer_release(info); return ret; } @@ -814,7 +813,6 @@ static int of_platform_mb862xx_remove(struct platform_device *ofdev) iounmap(par->mmio_base); iounmap(par->fb_base); - dev_set_drvdata(&ofdev->dev, NULL); release_mem_region(par->res->start, res_size); framebuffer_release(fbi); return 0;