From patchwork Tue Sep 22 09:07:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmljaGFyZCBSw4PCtmpmb3Jz?= X-Patchwork-Id: 49228 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8M9S1On003139 for ; Tue, 22 Sep 2009 09:28:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755567AbZIVJ14 (ORCPT ); Tue, 22 Sep 2009 05:27:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755560AbZIVJ14 (ORCPT ); Tue, 22 Sep 2009 05:27:56 -0400 Received: from av7-2-sn3.vrr.skanova.net ([81.228.9.182]:49959 "EHLO av7-2-sn3.vrr.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755449AbZIVJ1z (ORCPT ); Tue, 22 Sep 2009 05:27:55 -0400 X-Greylist: delayed 1246 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Sep 2009 05:27:55 EDT Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 1BE7437FA7; Tue, 22 Sep 2009 10:31:28 +0200 (CEST) Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id ECD67380D8; Tue, 22 Sep 2009 10:31:27 +0200 (CEST) Received: from [10.0.1.199] (81-231-246-25-no35.business.telia.com [81.231.246.25]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 7652A37E5B; Tue, 22 Sep 2009 11:07:34 +0200 (CEST) Message-ID: <4AB893D6.5090009@mocean-labs.com> Date: Tue, 22 Sep 2009 11:07:34 +0200 From: =?ISO-8859-1?Q?Richard_R=F6jfors?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Douglas Schilling Landgraf Subject: [PATCH 4/4] adv7180: Use __devinit and __devexit macros X-Enigmail-Version: 0.95.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch defines the probe and remove function as __devinit and __devexit. Signed-off-by: Richard Röjfors --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/video/adv7180.c b/drivers/media/video/adv7180.c index d9e897d..0826f0d 100644 --- a/drivers/media/video/adv7180.c +++ b/drivers/media/video/adv7180.c @@ -302,7 +302,7 @@ static irqreturn_t adv7180_irq(int irq, void *devid) * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' */ -static int adv7180_probe(struct i2c_client *client, +static __devinit int adv7180_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct adv7180_state *state; @@ -404,7 +404,7 @@ err: return ret; } -static int adv7180_remove(struct i2c_client *client) +static __devexit int adv7180_remove(struct i2c_client *client) { struct v4l2_subdev *sd = i2c_get_clientdata(client); struct adv7180_state *state = to_state(sd); @@ -440,7 +440,7 @@ static struct i2c_driver adv7180_driver = { .name = DRIVER_NAME, }, .probe = adv7180_probe, - .remove = adv7180_remove, + .remove = __devexit_p(adv7180_remove), .id_table = adv7180_id, };