From patchwork Sat May 11 12:56:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2553921 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 06C85DF230 for ; Sat, 11 May 2013 12:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751990Ab3EKM45 (ORCPT ); Sat, 11 May 2013 08:56:57 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:24239 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab3EKM45 (ORCPT ); Sat, 11 May 2013 08:56:57 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMM00JP5XAUPC40@mailout4.samsung.com> for linux-fbdev@vger.kernel.org; Sat, 11 May 2013 21:56:55 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 86.F8.19350.7104E815; Sat, 11 May 2013 21:56:55 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-70-518e4017dbe9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 99.0C.01422.7104E815; Sat, 11 May 2013 21:56:55 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMM00IN7XAV0T60@mmp2.samsung.com>; Sat, 11 May 2013 21:56:55 +0900 (KST) From: Jingoo Han To: linux-fbdev@vger.kernel.org Cc: 'Florian Tobias Schandinat' , 'Tomi Valkeinen' , Jingoo Han , Kuninori Morimoto Subject: [PATCH 12/15] video: sh7760fb: remove unnecessary platform_set_drvdata() Date: Sat, 11 May 2013 21:56:55 +0900 Message-id: <000c01ce4e47$03d37f80$0b7a7e80$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5ORvKAqsC/ojcQSXm42AOZk+uEyA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zQ11xh75AgwPz1C06Z15jtLi88BKr xavDuxgtTvR9YLVYP/8WmwOrx4ePcR7fzkxk8ejbsorR4/iN7UwenzfJBbBGcdmkpOZklqUW 6dslcGX07L7AVnCfreLl7bNMDYzXWLsYOTkkBEwk5l/+zQZhi0lcuLceyObiEBJYxijR+bSL Babo0IdfLBCJ6YwS52e+gKr6xShxbttqsFFsAmoSX74cZgexRQTkJfb0tzOBFDELHGCUOHtp FlCCg0NYIFiidbIeSA2LgKpEz9aPYBt4BSwlLjTNZISwBSV+TL4HFmcW0JJYv/M4E4QtL7F5 zVtmiIsUJHacfc0IsUtP4tShRnaIGhGJfS/eMYLslRA4xC6xbfsZZohlAhLfJh9iAblBQkBW YtMBqDmSEgdX3GCZwCg2C8nqWUhWz0KyehaSFQsYWVYxiqYWJBcUJ6UXmeoVJ+YWl+al6yXn 525ihMTexB2M9w9YH2JMBlo/kVlKNDkfGLt5JfGGxmZGFqYmpsZG5pZmpAkrifOqt1gHCgmk J5akZqemFqQWxReV5qQWH2Jk4uCUamBMnK2V1hT4Y9L5D9sT0nOsi8+f51ql8O7XN8eIHMd9 XxtvepvGb503dePf1wzH17b/bi9J9b5gcpN7Wasdz8YTJme4nk362nVS/tUuEzPRk5treqRM TnwVKbAMqFdRbMo9u6BOwXL1mqXCffx9lVdcnRlksg4kXbUXmdIu9FggcAp7Tf2C/RxKLMUZ iYZazEXFiQCsVsEY0wIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jQV1xh75Ag4vvlS06Z15jtLi88BKr xavDuxgtTvR9YLVYP/8WmwOrx4ePcR7fzkxk8ejbsorR4/iN7UwenzfJBbBGNTDaZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jFm9Oy+wFZwn63i5e2zTA2M11i7GDk5JARMJA59 +MUCYYtJXLi3nq2LkYtDSGA6o8T5mS+gnF+MEue2rQbrYBNQk/jy5TA7iC0iIC+xp7+dCaSI WeAAo8TZS7OAEhwcwgLBEq2T9UBqWARUJXq2fgTbwCtgKXGhaSYjhC0o8WPyPbA4s4CWxPqd x5kgbHmJzWveMkNcpCCx4+xrRohdehKnDjWyQ9SISOx78Y5xAqPALCSjZiEZNQvJqFlIWhYw sqxiFE0tSC4oTkrPNdIrTswtLs1L10vOz93ECI7sZ9I7GFc1WBxiFOBgVOLhrRDqDRRiTSwr rsw9xCjBwawkwvvsAVCINyWxsiq1KD++qDQntfgQYzLQpxOZpUST84FJJ68k3tDYxMzI0sjM wsjE3Jw0YSVx3oOt1oFCAumJJanZqakFqUUwW5g4OKUaGGf/vp1pzfT3qOKFBRItHLFTX+qv 0S648n3JmbxbYrrOlad2JuQwz3768teraV7rHbWblzY9KXs670er9H6mjfa9v3WzfP9u93Kc cEs3bb35MY+IRzXrn1+we7ooV+tNzyQJWSG7RR8d6w2yA49Pd0ourfS4sPVNnnxSYXpQZOnO kjWbuLet6VZiKc5INNRiLipOBAAHNdudMAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Acked-by: Kuninori Morimoto --- drivers/video/sh7760fb.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/video/sh7760fb.c b/drivers/video/sh7760fb.c index 5fbb0c7..a8c6c43 100644 --- a/drivers/video/sh7760fb.c +++ b/drivers/video/sh7760fb.c @@ -571,7 +571,6 @@ static int sh7760fb_remove(struct platform_device *dev) iounmap(par->base); release_mem_region(par->ioarea->start, resource_size(par->ioarea)); framebuffer_release(info); - platform_set_drvdata(dev, NULL); return 0; }