Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1590715

[PATCH] [media] ad5820: remove incorrect __exit markups

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Dmitry Torokhov <dmitry.torokhov@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] [media] ad5820: remove incorrect __exit markups
Date Thu, 02 Mar 2017 01:20:02 +0100
Message-ID <tgmDo-2sk-25@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=g3E22pkKhNdCGtNgS3Yvxjq3aDrn8oWXbyK9ZrC89gg=; b=Ea0OtUfGRl189pLZhJ68e9LNokkuB/Ppd/5gB8XYGc5ssx/2DVBS6YnVAoxFF2+O1c 0hP3zpZj33Q3O9NQja54JbndPPNBaw5kd2+TxT/7NB2wmFmJLA+jHWn+LNRI/yFzqPWp tCBCr76nn5+WRy6UM+2EpH5CEZzHYqa9Uu3ef2qKAxuzhxS+AsalOyfZ+QhodBHwgC2m S7UnzsjtDm8NvDR9mI74mcXGq4OkiiB2GhDTxWadKE/VCO1P3hAyDB5L+xaxrYLSfnqY wu+7CrOnHoj2aVAE+yTwBdKNc2ina9nK9UO1Lb1lgvrQD5Vx6WkEAXlTtAXnFM7er1Wy JzKw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=g3E22pkKhNdCGtNgS3Yvxjq3aDrn8oWXbyK9ZrC89gg=; b=eLGJInvvc/NrrfDAphtKrEOuY5RKeT27vwdaoscBzhUemZbEcT6HvCLbRpeCykP/FO 8wdevqMDmJFpdm8QAcN9hzjVuL7ronzALoCMwrG7L03vFnRynlyeaTJbpjtm+yXUI8H8 gOxml3LgSBSt+ite9xxP11qvEcPT+UM1vChdQoN5VSjVB0RzawrW4c4/ZjkmIjU8rQnV nPZwcs2KitSjwl4qMUVK+IbSC5vKSgYQlqHMal9QOkPTdERBLUCn3F6/1gpHGLYpWNJt aaq1Zwj2bsOk2L2z3Ix/oAx4QAhA8mZhaSzsA2+zRttyl+rNnAcQzVn1t5aPGympbbU8 2Qxw==
X-Gm-Message-State AMke39mbGn3YMKuI7dm5HOMUNVnnhjr0OIywFZ1rSRe/6V5EV4kRk+u8NQ6/SZso+jLmfg==
X-Received by 10.98.43.4 with SMTP id r4mr11843891pfr.96.1488411686314; Wed, 01 Mar 2017 15:41:26 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
X-Original-Cc Pavel Machek <pavel@ucw.cz>, Hans Verkuil <hans.verkuil@cisco.com>, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Wed, 1 Mar 2017 15:41:23 -0800
X-Original-Message-ID <20170301234123.GA12089@dtor-ws>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1590715

Show key headers only | View raw


Even if bus is not hot-pluggable, 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.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/media/i2c/ad5820.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c
index a9026a91855e..3d2a3c6b67d8 100644
--- a/drivers/media/i2c/ad5820.c
+++ b/drivers/media/i2c/ad5820.c
@@ -336,7 +336,7 @@ static int ad5820_probe(struct i2c_client *client,
 	return ret;
 }
 
-static int __exit ad5820_remove(struct i2c_client *client)
+static int ad5820_remove(struct i2c_client *client)
 {
 	struct v4l2_subdev *subdev = i2c_get_clientdata(client);
 	struct ad5820_device *coil = to_ad5820_device(subdev);
@@ -362,7 +362,7 @@ static struct i2c_driver ad5820_i2c_driver = {
 		.pm	= &ad5820_pm,
 	},
 	.probe		= ad5820_probe,
-	.remove		= __exit_p(ad5820_remove),
+	.remove		= ad5820_remove,
 	.id_table	= ad5820_id_table,
 };
 
-- 
2.12.0.rc1.440.g5b76565f74-goog


-- 
Dmitry

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] [media] ad5820: remove incorrect __exit markups Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-02 01:20 +0100
  Re: [PATCH] [media] ad5820: remove incorrect __exit markups Pavel Machek <pavel@ucw.cz> - 2017-03-02 11:00 +0100

csiph-web