From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756051Ab3BZHbt (ORCPT ); Tue, 26 Feb 2013 02:31:49 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:65451 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761Ab3BZHbs (ORCPT ); Tue, 26 Feb 2013 02:31:48 -0500 Date: Tue, 26 Feb 2013 08:31:45 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Dmitry Torokhov cc: Mauro Carvalho Chehab , Sakari Ailus , Timo Kokkonen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Media: remove incorrect __init/__exit markups In-Reply-To: <20130226071726.GA11322@core.coreip.homeip.net> Message-ID: References: <20130226071726.GA11322@core.coreip.homeip.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Provags-ID: V02:K0:7uVHUkzHdh1cq6YsCUAC4/QyVu2uwHVdOk/Zlm218do CDNvgtTM/9Rmn6C9QPc31y7+1FiZlI4BCDv1zKRi7aG6WOdFMZ +zyhWd4U0v/KR8uEHmU4xJ5QHINUjyJSCXjudNISyeg9U4y22p YW3bbCEPeoReqxupwkvt9AXvxhyL1H0klyrepcVyiQca1VRzMo vztKJYoDdqpMTeVX2cTwSudBpUVgS4mgbHmarBwguZsWwSu8ND fv6y2KpJAKBo+BaUAKchc0/46LuZwUzsYtj0OxeDeZa06Rq6as q+MTpHKYPdrrk/6WDBkn9gNDGoYaYRkaA0e2zmsoe69EafGVmr T1E4a8y15YVdUXF1jhB1Lzh0UQxlAEpDkkYaAHOrpCjd+s57c5 0xtnQtam1ccJg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Feb 2013, Dmitry Torokhov wrote: > Even if bus is not hot-pluggable, the devices can be unbound from the > driver via sysfs, so we should not be using __exit annotations on > remove() methods. The only exception is drivers registered with > platform_driver_probe() which specifically disables sysfs bind/unbind > attributes. > > Similarly probe() methods should not be marked __init unless > platform_driver_probe() is used. > > Signed-off-by: Dmitry Torokhov > --- > > v1->v2: removed __init markup on omap1_cam_probe() that was pointed out > by Guennadi Liakhovetski. > > drivers/media/platform/soc_camera/omap1_camera.c | 6 +++--- Acked-by: Guennadi Liakhovetski Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/