tmatsuya / linux-2.6

Mirror of Linus Torvald's Kernel Tree
http://kernel.org/
Other
9 stars 3 forks source link

Do not use global variables #10

Closed m-labs closed 13 years ago

m-labs commented 14 years ago

Instead, in many cases, we can kmalloc a structure (for example, in the platform device probe function) that holds the driver state. Most other drivers do like that.