Commit a7b98b67 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Dave Airlie

drm/sis: fixed brace and spacing coding style issues

Fixed brace and spacing coding style issues.
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent bc5e9d6a
...@@ -47,9 +47,8 @@ static int sis_driver_load(struct drm_device *dev, unsigned long chipset) ...@@ -47,9 +47,8 @@ static int sis_driver_load(struct drm_device *dev, unsigned long chipset)
dev->dev_private = (void *)dev_priv; dev->dev_private = (void *)dev_priv;
dev_priv->chipset = chipset; dev_priv->chipset = chipset;
ret = drm_sman_init(&dev_priv->sman, 2, 12, 8); ret = drm_sman_init(&dev_priv->sman, 2, 12, 8);
if (ret) { if (ret)
kfree(dev_priv); kfree(dev_priv);
}
return ret; return ret;
} }
......
...@@ -78,7 +78,7 @@ static unsigned long sis_sman_mm_offset(void *private, void *ref) ...@@ -78,7 +78,7 @@ static unsigned long sis_sman_mm_offset(void *private, void *ref)
#else /* CONFIG_FB_SIS[_MODULE] */ #else /* CONFIG_FB_SIS[_MODULE] */
#define SIS_MM_ALIGN_SHIFT 4 #define SIS_MM_ALIGN_SHIFT 4
#define SIS_MM_ALIGN_MASK ( (1 << SIS_MM_ALIGN_SHIFT) - 1) #define SIS_MM_ALIGN_MASK ((1 << SIS_MM_ALIGN_SHIFT) - 1)
#endif /* CONFIG_FB_SIS[_MODULE] */ #endif /* CONFIG_FB_SIS[_MODULE] */
...@@ -225,10 +225,9 @@ static drm_local_map_t *sis_reg_init(struct drm_device *dev) ...@@ -225,10 +225,9 @@ static drm_local_map_t *sis_reg_init(struct drm_device *dev)
map = entry->map; map = entry->map;
if (!map) if (!map)
continue; continue;
if (map->type == _DRM_REGISTERS) { if (map->type == _DRM_REGISTERS)
return map; return map;
} }
}
return NULL; return NULL;
} }
...@@ -264,10 +263,10 @@ int sis_idle(struct drm_device *dev) ...@@ -264,10 +263,10 @@ int sis_idle(struct drm_device *dev)
end = jiffies + (DRM_HZ * 3); end = jiffies + (DRM_HZ * 3);
for (i=0; i<4; ++i) { for (i = 0; i < 4; ++i) {
do { do {
idle_reg = SIS_READ(0x85cc); idle_reg = SIS_READ(0x85cc);
} while ( !time_after_eq(jiffies, end) && } while (!time_after_eq(jiffies, end) &&
((idle_reg & 0x80000000) != 0x80000000)); ((idle_reg & 0x80000000) != 0x80000000));
} }
...@@ -301,7 +300,7 @@ void sis_lastclose(struct drm_device *dev) ...@@ -301,7 +300,7 @@ void sis_lastclose(struct drm_device *dev)
mutex_unlock(&dev->struct_mutex); mutex_unlock(&dev->struct_mutex);
} }
void sis_reclaim_buffers_locked(struct drm_device * dev, void sis_reclaim_buffers_locked(struct drm_device *dev,
struct drm_file *file_priv) struct drm_file *file_priv)
{ {
drm_sis_private_t *dev_priv = dev->dev_private; drm_sis_private_t *dev_priv = dev->dev_private;
...@@ -312,9 +311,8 @@ void sis_reclaim_buffers_locked(struct drm_device * dev, ...@@ -312,9 +311,8 @@ void sis_reclaim_buffers_locked(struct drm_device * dev,
return; return;
} }
if (dev->driver->dma_quiescent) { if (dev->driver->dma_quiescent)
dev->driver->dma_quiescent(dev); dev->driver->dma_quiescent(dev);
}
drm_sman_owner_cleanup(&dev_priv->sman, (unsigned long)file_priv); drm_sman_owner_cleanup(&dev_priv->sman, (unsigned long)file_priv);
mutex_unlock(&dev->struct_mutex); mutex_unlock(&dev->struct_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment