summaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb/XGIfb.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2012-03-19 21:50:14 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-10 09:52:58 -0700
commitf650caaa49c774df0bf15a9f99168db93c7a92e8 (patch)
treec014b0cd9a78bc3d94b1361ff2bc531bec2e53e1 /drivers/staging/xgifb/XGIfb.h
parent9a801f252a1695d85da53845daf6e21671bf72ed (diff)
staging/xgifb: fix addressing issues on platform with long physical addressing
Some platforms (e.g. ppc460ex) have 36-bit physical addressing, while sizeof(unsigned long) == 4. Adapt xgifb driver to use phys_addr_t for physical address variables instead of unsigned long. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb/XGIfb.h')
-rw-r--r--drivers/staging/xgifb/XGIfb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/XGIfb.h b/drivers/staging/xgifb/XGIfb.h
index 37bb730de047..bea222d06fe6 100644
--- a/drivers/staging/xgifb/XGIfb.h
+++ b/drivers/staging/xgifb/XGIfb.h
@@ -66,9 +66,9 @@ struct xgifb_video_info {
int chip_id;
unsigned int video_size;
- unsigned long video_base;
+ phys_addr_t video_base;
void __iomem *video_vbase;
- unsigned long mmio_base;
+ phys_addr_t mmio_base;
unsigned long mmio_size;
void __iomem *mmio_vbase;
unsigned long vga_base;