Re: [PATCH] PC300 update
From: Marcelo Tosatti
Date: Wed Jan 28 2004 - 19:48:10 EST
Hi Greg!
On Wed, 28 Jan 2004, Greg KH wrote:
> On Wed, Jan 28, 2004 at 05:42:11PM -0200, Marcelo Tosatti wrote:
> >
> > - Mark pci_device_id list with __devinitdata
>
> Noooo!!! I think we've finally audited all uses of this. Do not do
> this please, it is wrong for 2.6.
[root@yage wan]# pwd
/root/linux-2.6.1/drivers/net/wan
[root@yage wan]# grep __devexit_p *
dscc4.c: .remove = __devexit_p(dscc4_remove_one),
farsync.c: .remove = __devexit_p(fst_remove_one),
So this ones are wrong too I assume?
Mind explaining me what is the deal with __devexit_p() in 2.6?
> > - Add #ifdef DEBUG around debug printk()
>
> What's wrong with dev_dbg()? It gives you a much better idea of which
> device is spitting out the messages.
Indeed, dev_dbg() is fine. I will replace all #ifdef DEBUG entries in the
driver with dev_dgb(...). Thanks for the hint.
Linus, hold the patch :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/