From patchwork Fri Apr 26 20:02:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2495621 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id EC0DF3FC64 for ; Fri, 26 Apr 2013 20:04:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756257Ab3DZUEa (ORCPT ); Fri, 26 Apr 2013 16:04:30 -0400 Received: from mail-ee0-f47.google.com ([74.125.83.47]:49288 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756227Ab3DZUE3 (ORCPT ); Fri, 26 Apr 2013 16:04:29 -0400 Received: by mail-ee0-f47.google.com with SMTP id b57so1838368eek.20 for ; Fri, 26 Apr 2013 13:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=cHlsJt6p23q/FzSJeOdaIdRnu9to+ayUNzYeyhsvBkI=; b=SvCGh63m745sohVHsDupxuRJR/iF2XX3cOAQSfWKnSuZwirCcSjOFGDEKOwShSK8F/ lU7/G2ClNxFiL2N3u+LLMgqEvoHwh8t6h7rMMM4D4o7bVRyO+r/a9HwpoXUdN+brvlB5 FTBXRW1YF3x1mzPPTI8jcn1EcdheoBbyTxqzU+5fgrTuj4G7z748qivFas4mlaY6H7zJ l8GV6ElPa5Q47k0a/WkI9yawF1gzOQxe1PPCPgTwhWirhIY4t/XILSsxxQpRZwL576GF qhdrQmJsF9nQN0TrokT251jQe86M0QXdhQ8juJNX2qjuFoe8WZ5wPjYD6yMbIxQHzDqZ 9xyw== X-Received: by 10.15.102.3 with SMTP id bq3mr91293181eeb.42.1367006668372; Fri, 26 Apr 2013 13:04:28 -0700 (PDT) Received: from localhost.localdomain (093105185086.warszawa.vectranet.pl. [93.105.185.86]) by mx.google.com with ESMTPSA id cd3sm17841788eeb.6.2013.04.26.13.04.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 26 Apr 2013 13:04:27 -0700 (PDT) From: Sylwester Nawrocki To: kgene.kim@samsung.com, FlorianSchandinat@gmx.de Cc: linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH 8/9] s3c2410fb: Remove redundant platform_set_drvdata() Date: Fri, 26 Apr 2013 22:02:22 +0200 Message-Id: <1367006543-5458-9-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1367006543-5458-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1367006543-5458-1-git-send-email-sylvester.nawrocki@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org driver_data field is being cleared by the driver core since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d device-core: Ensure drvdata = NULL when no driver is bound hence there is no need to do it in the driver's remove() callback. Signed-off-by: Sylwester Nawrocki --- drivers/video/s3c2410fb.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index 11f98ca..0439ed0 100644 --- a/drivers/video/s3c2410fb.c +++ b/drivers/video/s3c2410fb.c @@ -1013,7 +1013,6 @@ static int s3c2410fb_remove(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); free_irq(irq, info); - platform_set_drvdata(pdev, NULL); framebuffer_release(fbinfo); return 0;