diff options
Diffstat (limited to 'drivers/char/drm/mga_warp.c')
-rw-r--r-- | drivers/char/drm/mga_warp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/drm/mga_warp.c b/drivers/char/drm/mga_warp.c index d67f4925fbac..651b93c8ab5d 100644 --- a/drivers/char/drm/mga_warp.c +++ b/drivers/char/drm/mga_warp.c | |||
@@ -141,7 +141,7 @@ int mga_warp_install_microcode(drm_mga_private_t * dev_priv) | |||
141 | if (size > dev_priv->warp->size) { | 141 | if (size > dev_priv->warp->size) { |
142 | DRM_ERROR("microcode too large! (%u > %lu)\n", | 142 | DRM_ERROR("microcode too large! (%u > %lu)\n", |
143 | size, dev_priv->warp->size); | 143 | size, dev_priv->warp->size); |
144 | return DRM_ERR(ENOMEM); | 144 | return -ENOMEM; |
145 | } | 145 | } |
146 | 146 | ||
147 | switch (dev_priv->chipset) { | 147 | switch (dev_priv->chipset) { |
@@ -151,7 +151,7 @@ int mga_warp_install_microcode(drm_mga_private_t * dev_priv) | |||
151 | case MGA_CARD_TYPE_G200: | 151 | case MGA_CARD_TYPE_G200: |
152 | return mga_warp_install_g200_microcode(dev_priv); | 152 | return mga_warp_install_g200_microcode(dev_priv); |
153 | default: | 153 | default: |
154 | return DRM_ERR(EINVAL); | 154 | return -EINVAL; |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
@@ -177,7 +177,7 @@ int mga_warp_init(drm_mga_private_t * dev_priv) | |||
177 | MGA_WRITE(MGA_WVRTXSZ, 7); | 177 | MGA_WRITE(MGA_WVRTXSZ, 7); |
178 | break; | 178 | break; |
179 | default: | 179 | default: |
180 | return DRM_ERR(EINVAL); | 180 | return -EINVAL; |
181 | } | 181 | } |
182 | 182 | ||
183 | MGA_WRITE(MGA_WMISC, (MGA_WUCODECACHE_ENABLE | | 183 | MGA_WRITE(MGA_WMISC, (MGA_WUCODECACHE_ENABLE | |
@@ -186,7 +186,7 @@ int mga_warp_init(drm_mga_private_t * dev_priv) | |||
186 | if (wmisc != WMISC_EXPECTED) { | 186 | if (wmisc != WMISC_EXPECTED) { |
187 | DRM_ERROR("WARP engine config failed! 0x%x != 0x%x\n", | 187 | DRM_ERROR("WARP engine config failed! 0x%x != 0x%x\n", |
188 | wmisc, WMISC_EXPECTED); | 188 | wmisc, WMISC_EXPECTED); |
189 | return DRM_ERR(EINVAL); | 189 | return -EINVAL; |
190 | } | 190 | } |
191 | 191 | ||
192 | return 0; | 192 | return 0; |