From patchwork Fri Sep 20 06:32:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915271 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 79A1E9F1F1 for ; Fri, 20 Sep 2013 06:32:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80A48202C8 for ; Fri, 20 Sep 2013 06:32:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 73D90202C3 for ; Fri, 20 Sep 2013 06:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916Ab3ITGcT (ORCPT ); Fri, 20 Sep 2013 02:32:19 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:42542 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab3ITGcS (ORCPT ); Fri, 20 Sep 2013 02:32:18 -0400 Received: by mail-pd0-f173.google.com with SMTP id p10so19139pdj.4 for ; Thu, 19 Sep 2013 23:32:18 -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=lyQnuC/NcKhNwZzo8gALoyIDrbo6gIxsLCioFldMuCk=; b=GknsntV/xNMj4U8EieMQXrl9jEpwmPDKDDnVQY2uXlb42Cy3oZE0haVA9GkfTGEmCm XhTjocfBsYmg2zuRZkiPNmxGhEmj1VMIORp0Iu1G3OhM9Rz3MX5+IoNZvHkv8YX6/855 tvAYchFchbcQt7Ip3sOE1BZ5NqhesuAzgX8jecxIvPMX8pfW0K6TEc1vSzAvkht9LCLy PQ0NN2eBbMVGHHPAhJZJ8XMDJSH1G2dY2KNi09vuS5Q8g6e5/0nTd3vD3g3dUDBUYcIp iuDt3R6YideE2kXO5jbmUiWZ2s0a7K8WZzzL/B7L57K9hZSKcCk2JyzEO/uz6QJfMBd3 bObw== X-Gm-Message-State: ALoCoQnttbV5l46XqmrSjpFs2eSPiIt1inFKN21xJek2Gjrz/HX38bIYOFzc/H3b4iecuiBKfIc5 X-Received: by 10.68.178.2 with SMTP id cu2mr6061870pbc.161.1379658738239; Thu, 19 Sep 2013 23:32:18 -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:18 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, sachin.kamat@linaro.org, Kristoffer Glembo Subject: [PATCH 02/15] video: grvga: Remove redundant dev_set_drvdata Date: Fri, 20 Sep 2013 12:02:11 +0530 Message-Id: <1379658744-17113-3-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: Kristoffer Glembo --- drivers/video/grvga.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/grvga.c b/drivers/video/grvga.c index b95eee7..c078701 100644 --- a/drivers/video/grvga.c +++ b/drivers/video/grvga.c @@ -496,7 +496,6 @@ static int grvga_probe(struct platform_device *dev) return 0; free_mem: - dev_set_drvdata(&dev->dev, NULL); if (grvga_fix_addr) iounmap((void *)virtual_start); else @@ -530,7 +529,6 @@ static int grvga_remove(struct platform_device *device) kfree((void *)info->screen_base); framebuffer_release(info); - dev_set_drvdata(&device->dev, NULL); } return 0;