From: H Hartley Sweeten Date: Tue, 22 Jun 2010 23:38:50 +0000 (-0700) Subject: Staging: dt3155: Cleanup memory mapped i/o access X-Git-Tag: v2.6.36-rc1~520^2~1^2~336 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55bb6ece160f4598a79dd484950461545f6e6638;p=pandora-kernel.git Staging: dt3155: Cleanup memory mapped i/o access The macros ReadMReg and WriteMReg are really just private versions of the kernel's readl and writel functions. Use the kernel's functions instead. And since ioremap returns a (void __iomem *) not a (u8 *), change all the uses of dt3155_lbase to reflect this. While here, make dt3155_lbase static since it is only used in the dt3155_drv.c file. Also, remove the global variable dt3155_bbase since it is not used anywhere in the code. Where is makes sense, create a local 'mmio' variable instead of using dt3155_lbase[minor] to make the code more readable. This change also affects the {Read|Write}I2C functions so they are also modified as needed. Signed-off-by: H Hartley Sweeten Cc: Scott Smedley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed