Commit 414f3455 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove MOD_INC_USE_COUNT usage in arch/um/drivers/harddog_kern.c

From: Christoph Hellwig <hch@lst.de>

->open already has a reference so use __module_get.  The file has no
maintainer noted in it, all credits are from the driver it's copied from.
parent d03500e8
...@@ -71,7 +71,7 @@ static int harddog_open(struct inode *inode, struct file *file) ...@@ -71,7 +71,7 @@ static int harddog_open(struct inode *inode, struct file *file)
if(timer_alive) if(timer_alive)
return -EBUSY; return -EBUSY;
#ifdef CONFIG_HARDDOG_NOWAYOUT #ifdef CONFIG_HARDDOG_NOWAYOUT
MOD_INC_USE_COUNT; __module_get(THIS_MODULE);
#endif #endif
#ifdef CONFIG_MCONSOLE #ifdef CONFIG_MCONSOLE
......
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