From patchwork Fri Sep 20 06:32:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915261 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 59167BFF05 for ; Fri, 20 Sep 2013 06:32:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F375202C8 for ; Fri, 20 Sep 2013 06:32:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DA5D202C3 for ; Fri, 20 Sep 2013 06:32:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879Ab3ITGcQ (ORCPT ); Fri, 20 Sep 2013 02:32:16 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:34946 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826Ab3ITGcQ (ORCPT ); Fri, 20 Sep 2013 02:32:16 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so16729pbc.16 for ; Thu, 19 Sep 2013 23:32:16 -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=NaL4vvs02gb7C+UZtQnh7IFRvLUSGx0jvwtCXHOt9cc=; b=ObjDiHMYN3MWNF9geu2ofdEMOtl2w+msm029onTUB27lcYEX5uDo3mQhcOQ0apLODp dZdLrIy4mVeGP44lKoynu7N40qxcmRSBYSvHpk3SAjdeNKTAUNPlLNHx/KbB/y1XGEON iH06rw7+RUdxndaAQxzgwzLvND8Ca+MgKkUl4HkHFhGn46hd47kJtLg67OIUD+iMbxf7 E/SF2BI1A7H2UN3rJZ7cFTtbOsZfmDb7Z/eNWVZdyyo7yeRbr0xUzW96Tx/iH6Me69ML T44joo7xaX92L3Mjh3ryt+VdE/53cmBqiN3AU81U8g/xFMGXfubpiTHypgXisy5BaUyr 3Gew== X-Gm-Message-State: ALoCoQnk/ZlvcPSH7+MraIuC6583UvLyDerfWFuMyYo+cHrIuwIDQnj3IdPD/TjgmMlaBCkv2a97 X-Received: by 10.66.243.196 with SMTP id xa4mr1444282pac.174.1379658735999; Thu, 19 Sep 2013 23:32:15 -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:15 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, sachin.kamat@linaro.org, Nicolas Ferre Subject: [PATCH 01/15] video: atmel_lcdfb: Remove redundant dev_set_drvdata Date: Fri, 20 Sep 2013 12:02:10 +0530 Message-Id: <1379658744-17113-2-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: Nicolas Ferre Acked-by: Nicolas Ferre --- drivers/video/atmel_lcdfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 34e934d..70052e7 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -1318,7 +1318,6 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) return 0; reset_drvdata: - dev_set_drvdata(dev, NULL); fb_dealloc_cmap(&info->cmap); unregister_irqs: cancel_work_sync(&sinfo->task); @@ -1379,7 +1378,6 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev) atmel_lcdfb_free_video_memory(sinfo); } - dev_set_drvdata(dev, NULL); framebuffer_release(info); return 0;