summaryrefslogtreecommitdiff
path: root/linux/mga_warp.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/mga_warp.c')
-rw-r--r--linux/mga_warp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/mga_warp.c b/linux/mga_warp.c
index 436e24f5..5994ab0c 100644
--- a/linux/mga_warp.c
+++ b/linux/mga_warp.c
@@ -160,8 +160,9 @@ static int mga_warp_install_g200_microcode( drm_mga_private_t *dev_priv )
return 0;
}
-int mga_warp_install_microcode( drm_mga_private_t *dev_priv )
+int mga_warp_install_microcode( drm_device_t *dev )
{
+ drm_mga_private_t *dev_priv = dev->dev_private;
DRM_DEBUG( "%s\n", __FUNCTION__ );
switch ( dev_priv->chipset ) {
@@ -176,8 +177,9 @@ int mga_warp_install_microcode( drm_mga_private_t *dev_priv )
#define WMISC_EXPECTED (MGA_WUCODECACHE_ENABLE | MGA_WMASTER_ENABLE)
-int mga_warp_init( drm_mga_private_t *dev_priv )
+int mga_warp_init( drm_device_t *dev )
{
+ drm_mga_private_t *dev_priv = dev->dev_private;
u32 wmisc;
DRM_DEBUG( "%s\n", __FUNCTION__ );