Commit 1dcc0ceb authored by Ilija Hadzic's avatar Ilija Hadzic Committed by Daniel Vetter

drm: remove unused argument from drm_open_helper

inode argument is no longer in use (cf. f4aede2e).
Remove it.
Signed-off-by: default avatarIlija Hadzic <ihadzic@research.bell-labs.com>
Cc: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 731cce48
...@@ -43,8 +43,7 @@ ...@@ -43,8 +43,7 @@
DEFINE_MUTEX(drm_global_mutex); DEFINE_MUTEX(drm_global_mutex);
EXPORT_SYMBOL(drm_global_mutex); EXPORT_SYMBOL(drm_global_mutex);
static int drm_open_helper(struct inode *inode, struct file *filp, static int drm_open_helper(struct file *filp, struct drm_minor *minor);
struct drm_minor *minor);
static int drm_setup(struct drm_device * dev) static int drm_setup(struct drm_device * dev)
{ {
...@@ -95,7 +94,7 @@ int drm_open(struct inode *inode, struct file *filp) ...@@ -95,7 +94,7 @@ int drm_open(struct inode *inode, struct file *filp)
/* share address_space across all char-devs of a single device */ /* share address_space across all char-devs of a single device */
filp->f_mapping = dev->anon_inode->i_mapping; filp->f_mapping = dev->anon_inode->i_mapping;
retcode = drm_open_helper(inode, filp, minor); retcode = drm_open_helper(filp, minor);
if (retcode) if (retcode)
goto err_undo; goto err_undo;
if (need_setup) { if (need_setup) {
...@@ -171,7 +170,6 @@ static int drm_cpu_valid(void) ...@@ -171,7 +170,6 @@ static int drm_cpu_valid(void)
/** /**
* Called whenever a process opens /dev/drm. * Called whenever a process opens /dev/drm.
* *
* \param inode device inode.
* \param filp file pointer. * \param filp file pointer.
* \param minor acquired minor-object. * \param minor acquired minor-object.
* \return zero on success or a negative number on failure. * \return zero on success or a negative number on failure.
...@@ -179,8 +177,7 @@ static int drm_cpu_valid(void) ...@@ -179,8 +177,7 @@ static int drm_cpu_valid(void)
* Creates and initializes a drm_file structure for the file private data in \p * Creates and initializes a drm_file structure for the file private data in \p
* filp and add it into the double linked list in \p dev. * filp and add it into the double linked list in \p dev.
*/ */
static int drm_open_helper(struct inode *inode, struct file *filp, static int drm_open_helper(struct file *filp, struct drm_minor *minor)
struct drm_minor *minor)
{ {
struct drm_device *dev = minor->dev; struct drm_device *dev = minor->dev;
struct drm_file *priv; struct drm_file *priv;
......
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