diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-16 11:22:15 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-16 11:22:15 +1000 |
commit | b95ac8b7b313ad3eadc9e8bb0ead155303b7fa92 (patch) | |
tree | a70d65cbafc2fb4b2fe172a606dc12a1f167dcce /linux-core/drm_lock.c | |
parent | 4be9554fcdf27bce86d0d69068d284af2793b950 (diff) |
drm: detypedef drm.h and fixup all problems
Diffstat (limited to 'linux-core/drm_lock.c')
-rw-r--r-- | linux-core/drm_lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_lock.c b/linux-core/drm_lock.c index f02df36b..6d348251 100644 --- a/linux-core/drm_lock.c +++ b/linux-core/drm_lock.c @@ -54,12 +54,12 @@ int drm_lock(struct inode *inode, struct file *filp, drm_file_t *priv = filp->private_data; drm_device_t *dev = priv->head->dev; DECLARE_WAITQUEUE(entry, current); - drm_lock_t lock; + struct drm_lock lock; int ret = 0; ++priv->lock_count; - if (copy_from_user(&lock, (drm_lock_t __user *) arg, sizeof(lock))) + if (copy_from_user(&lock, (struct drm_lock __user *) arg, sizeof(lock))) return -EFAULT; if (lock.context == DRM_KERNEL_CONTEXT) { @@ -154,10 +154,10 @@ int drm_unlock(struct inode *inode, struct file *filp, { drm_file_t *priv = filp->private_data; drm_device_t *dev = priv->head->dev; - drm_lock_t lock; + struct drm_lock lock; unsigned long irqflags; - if (copy_from_user(&lock, (drm_lock_t __user *) arg, sizeof(lock))) + if (copy_from_user(&lock, (struct drm_lock __user *) arg, sizeof(lock))) return -EFAULT; if (lock.context == DRM_KERNEL_CONTEXT) { |