[PATCH -mm] drivers/char/nozomi.c: __devexit_p usage build fix

Satyam Sharma
2007-09-02T12:47:58Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 814 bytes --]

A typo results in build breakage:

drivers/char/nozomi.c:2204: error: syntax error before ‘__attribute__’
make[2]: *** [drivers/char/nozomi.o] Error 1

when CONFIG_HOTPLUG=n. This was actually meant to be __devexit_p.

Signed-off-by: Satyam Sharma <satyam@infradead.org>

---

drivers/char/nozomi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.23-rc4-mm1/drivers/char/nozomi.c~fix 2007-09-02 16:16:59.000000000 +0530
+++ linux-2.6.23-rc4-mm1/drivers/char/nozomi.c 2007-09-02 16:17:07.000000000 +0530
@@ -2201,7 +2201,7 @@ static struct pci_driver nozomi_driver =
.name = NOZOMI_NAME,
.id_table = nozomi_pci_tbl,
.probe = nozomi_card_init,
- .remove = __devexit(nozomi_card_exit),
+ .remove = __devexit_p(nozomi_card_exit),
};

static __init int nozomi_init(void)