]> err.no Git - linux-2.6/commit
edac: i5100: cleanup
authorArthur Jones <ajones@riverbed.com>
Fri, 25 Jul 2008 08:49:08 +0000 (01:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:48 +0000 (10:53 -0700)
commitb238e57723a6fb2c365fc35de5d7c48ccf9300cd
tree5dd7fc42abedd6c5168b3f375b5a67de69305e9d
parent178d5a742291976d13bff55fa2b130879d4510de
edac: i5100: cleanup

Some code cleanliness issues found by Andrew Morton (thanks!) which should
not affect functionality, but which should help make the code more
maintainable.

In particular, we now:

* convert all #define's w/ a parameter to static inlines
* use 1UL rather than 1ULL when calculating an unsigned long
* use pci_disable_device

The resulting code is tested and seems to work fine...

Signed-off-by: Arthur Jones <ajones@riverbed.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/i5100_edac.c