From: Jens Axboe Date: Fri, 11 Jan 2008 12:37:01 +0000 (+0100) Subject: blktrace: kill the unneeded initcall X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=11a57153e3377ffdf8cfca2eda9a99063f66b957;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git blktrace: kill the unneeded initcall It just inits the mutex, we can do that with DEFINE_MUTEX() instead. Signed-off-by: Jens Axboe --- diff --git a/block/blktrace.c b/block/blktrace.c index 7471621d4ded..9b4da4ae3c7d 100644 --- a/block/blktrace.c +++ b/block/blktrace.c @@ -178,7 +178,7 @@ void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes, EXPORT_SYMBOL_GPL(__blk_add_trace); static struct dentry *blk_tree_root; -static struct mutex blk_tree_mutex; +static DEFINE_MUTEX(blk_tree_mutex); static unsigned int root_users; static inline void blk_remove_root(void) @@ -504,13 +504,3 @@ void blk_trace_shutdown(struct request_queue *q) blk_trace_remove(q); } } - -static __init int blk_trace_init(void) -{ - mutex_init(&blk_tree_mutex); - - return 0; -} - -module_init(blk_trace_init); -