aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_fb.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2008-05-12 15:58:55 -0700
committerIan Romanick <idr@us.ibm.com>2008-06-10 11:29:15 -0700
commit4f3da2f200577fcfbf913985246b3a4d23c6a818 (patch)
tree4b3c50170c142a10c2cfd9e85633457a69ee2427 /linux-core/xgi_fb.c
parentcdd0cb0ab372ac93adc73945627f4071f86f75c0 (diff)
xgi: Fix 64-bit kernel / 32-bit user issue.
Diffstat (limited to 'linux-core/xgi_fb.c')
-rw-r--r--linux-core/xgi_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/xgi_fb.c b/linux-core/xgi_fb.c
index 3f50fe8f..e793bd3f 100644
--- a/linux-core/xgi_fb.c
+++ b/linux-core/xgi_fb.c
@@ -93,7 +93,7 @@ int xgi_alloc_ioctl(struct drm_device * dev, void * data,
}
-int xgi_free(struct xgi_info * info, unsigned long index,
+int xgi_free(struct xgi_info * info, unsigned int index,
struct drm_file * filp)
{
int err;
@@ -111,7 +111,7 @@ int xgi_free_ioctl(struct drm_device * dev, void * data,
{
struct xgi_info *info = dev->dev_private;
- return xgi_free(info, *(unsigned long *) data, filp);
+ return xgi_free(info, *(unsigned int *) data, filp);
}