netdev
[Top] [All Lists]

[PATCH] horizon: make reset function not __init

To: netdev@xxxxxxxxxxx
Subject: [PATCH] horizon: make reset function not __init
From: "Randy.Dunlap" <rddunlap@xxxxxxxx>
Date: Thu, 19 Feb 2004 15:49:41 -0800
Cc: chas@xxxxxxxxxxxxxxxx
Organization: OSDL
Sender: netdev-bounce@xxxxxxxxxxx
Please apply to 2.6.current.

product_versions: linux-263
description:    This function can be called by init or exit code,
                so it shouldn't be marked __init.

diffstat:=
 drivers/atm/horizon.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Naurp ./drivers/atm/horizon.c~hrzinit ./drivers/atm/horizon.c
--- ./drivers/atm/horizon.c~hrzinit     2004-02-17 19:57:11.000000000 -0800
+++ ./drivers/atm/horizon.c     2004-02-19 15:19:18.000000000 -0800
@@ -1802,7 +1802,7 @@ static int hrz_send (struct atm_vcc * at
 
 /********** reset a card **********/
 
-static void __init hrz_reset (const hrz_dev * dev) {
+static void hrz_reset (const hrz_dev * dev) {
   u32 control_0_reg = rd_regl (dev, CONTROL_0_REG);
   
   // why not set RESET_HORIZON to one and wait for the card to


--
~Randy

<Prev in Thread] Current Thread [Next in Thread>