Re: [PATCH] drivers:staging: sources for ST core

From: Alan Cox
Date: Thu Apr 01 2010 - 19:23:35 EST

Sorry but I can't make head or tail of this and the code flow you are
trying to achieve.

The usual way you do stuff is to put per device stuff in a per device
struct, driver wide stuff in a driver struct (or static variables) and
then run everything from the device end.

I'd expect a low level driver to do something like

create device entry
initialise device (eg download firmware)
register itself with anything higher level

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at