drm: misc cleanup
This patch contains the following cleanups: - make needlessly global functions static - remove the following unused global functions: - drm_fops.c: drm_read - i915_dma.c: i915_do_cleanup_pageflip Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
#include "drmP.h"
|
||||
#include <linux/poll.h>
|
||||
|
||||
static int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t *dev);
|
||||
|
||||
static int drm_setup( drm_device_t *dev )
|
||||
{
|
||||
int i;
|
||||
@@ -341,7 +343,7 @@ EXPORT_SYMBOL(drm_release);
|
||||
* 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.
|
||||
*/
|
||||
int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t *dev)
|
||||
static int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t *dev)
|
||||
{
|
||||
int minor = iminor(inode);
|
||||
drm_file_t *priv;
|
||||
@@ -443,9 +445,3 @@ unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait)
|
||||
}
|
||||
EXPORT_SYMBOL(drm_poll);
|
||||
|
||||
|
||||
/** No-op. */
|
||||
ssize_t drm_read(struct file *filp, char __user *buf, size_t count, loff_t *off)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user