diff options
-rw-r--r-- | drivers/gpu/drm/drm_fops.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index e1eba0b7cd45..021fe5d11df5 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -43,8 +43,7 @@ | |||
43 | DEFINE_MUTEX(drm_global_mutex); | 43 | DEFINE_MUTEX(drm_global_mutex); |
44 | EXPORT_SYMBOL(drm_global_mutex); | 44 | EXPORT_SYMBOL(drm_global_mutex); |
45 | 45 | ||
46 | static int drm_open_helper(struct inode *inode, struct file *filp, | 46 | static int drm_open_helper(struct file *filp, struct drm_minor *minor); |
47 | struct drm_minor *minor); | ||
48 | 47 | ||
49 | static int drm_setup(struct drm_device * dev) | 48 | static int drm_setup(struct drm_device * dev) |
50 | { | 49 | { |
@@ -95,7 +94,7 @@ int drm_open(struct inode *inode, struct file *filp) | |||
95 | /* share address_space across all char-devs of a single device */ | 94 | /* share address_space across all char-devs of a single device */ |
96 | filp->f_mapping = dev->anon_inode->i_mapping; | 95 | filp->f_mapping = dev->anon_inode->i_mapping; |
97 | 96 | ||
98 | retcode = drm_open_helper(inode, filp, minor); | 97 | retcode = drm_open_helper(filp, minor); |
99 | if (retcode) | 98 | if (retcode) |
100 | goto err_undo; | 99 | goto err_undo; |
101 | if (need_setup) { | 100 | if (need_setup) { |
@@ -171,7 +170,6 @@ static int drm_cpu_valid(void) | |||
171 | /** | 170 | /** |
172 | * Called whenever a process opens /dev/drm. | 171 | * Called whenever a process opens /dev/drm. |
173 | * | 172 | * |
174 | * \param inode device inode. | ||
175 | * \param filp file pointer. | 173 | * \param filp file pointer. |
176 | * \param minor acquired minor-object. | 174 | * \param minor acquired minor-object. |
177 | * \return zero on success or a negative number on failure. | 175 | * \return zero on success or a negative number on failure. |
@@ -179,8 +177,7 @@ static int drm_cpu_valid(void) | |||
179 | * Creates and initializes a drm_file structure for the file private data in \p | 177 | * Creates and initializes a drm_file structure for the file private data in \p |
180 | * filp and add it into the double linked list in \p dev. | 178 | * filp and add it into the double linked list in \p dev. |
181 | */ | 179 | */ |
182 | static int drm_open_helper(struct inode *inode, struct file *filp, | 180 | static int drm_open_helper(struct file *filp, struct drm_minor *minor) |
183 | struct drm_minor *minor) | ||
184 | { | 181 | { |
185 | struct drm_device *dev = minor->dev; | 182 | struct drm_device *dev = minor->dev; |
186 | struct drm_file *priv; | 183 | struct drm_file *priv; |