]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/char/rocket portability fixes
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 19 Mar 2008 16:27:48 +0000 (16:27 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Mar 2008 02:42:36 +0000 (19:42 -0700)
commita65e40c9608194ac69f0cdec79a7f81b91b4d268
tree6813daab294e40068269c0564bd8c4f479f73dbc
parentf31813bdf34c4477e4227cf4edfe9c20f02cb445
drivers/char/rocket portability fixes

unsigned long != __le32, TYVM, and unsigned char[4] is not guaranteed
to be aligned for u32.

While we are at it, sanitize sOutDW() a bit - have it take Byte_t * and
handle dereferencing internally.

NB: sWriteTxPrioByte() is almost certainly buggered on big-endian and is
missing cpu_to_le16() on assignments to *WordPtr; I've left it alone for now.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rocket.c
drivers/char/rocket_int.h