| To: | Yoichi Yuasa <yuasa@hh.iij4u.or.jp> |
|---|---|
| Subject: | Re: [PATCH][2.6] Update NEC VRC4171 PCMCIA driver |
| From: | Christoph Hellwig <hch@lst.de> |
| Date: | Fri, 16 Jan 2004 13:33:52 +0100 |
| Cc: | Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <20040116083821.6b65c69f.yuasa@hh.iij4u.or.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20040116083821.6b65c69f.yuasa@hh.iij4u.or.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.3.28i |
On Fri, Jan 16, 2004 at 08:38:21AM +0900, Yoichi Yuasa wrote:
> +static int pccard_register_callback(unsigned int slot,
> + void (*handler)(void *, unsigned int),
> + void *info)
> +{
> + vrc4171_socket_t *socket;
> +
> + if (slot >= CARD_MAX_SLOTS)
> + return -EINVAL;
> +
> + socket = &vrc4171_sockets[slot];
> +
> + socket->handler = handler;
> + socket->info = info;
> +
> + if (handler)
> + MOD_INC_USE_COUNT;
> + else
> + MOD_DEC_USE_COUNT;
> +
> + return 0;
> +}
This is most certainly wrong. Module refcounting handling has moved one
layer up in 2.6.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Current 2.4 CVS (2.4.24-pre2) doesn't boot on SGI Indy, Dominik 'Rathann' Mierzejewski |
|---|---|
| Next by Date: | hang in setup_irq, Bruno Randolf |
| Previous by Thread: | [PATCH][2.6] Update NEC VRC4171 PCMCIA driver, Yoichi Yuasa |
| Next by Thread: | Re: [PATCH][2.6] Update NEC VRC4171 PCMCIA driver, Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |