fbdev/xilinxfb: Fix improper casting and tighen up probe path
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 17 Jun 2009 06:30:02 +0000 (00:30 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 17 Jun 2009 06:30:02 +0000 (00:30 -0600)
commitaa296a891d1f3704d40127e998c31dfda531fca7
treea08a4bb85861ec698bcbd9b234968aed43a4cc22
parent313485175da221c388f6a8ecf4c30062ba9bea17
fbdev/xilinxfb: Fix improper casting and tighen up probe path

The xilinxfb driver is improperly casting a physical address to a
u32, and the probe routine isn't as straight forward as it could be.
(discovered by gcc spitting out warnings on most recent change to
xilinxfb driver).

This patch fixes the cast and simplifies the probe path.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Tested-by: John Linn <john.linn@xilinx.com>
drivers/video/xilinxfb.c