mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
macintosh/adb: Replace __WAITQUEUE_INITIALIZER with more standard DECLARE_WAITQUEUE.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
1a5272866f
commit
e7f345a2a3
@ -697,7 +697,7 @@ static ssize_t adb_read(struct file *file, char __user *buf,
|
||||
int ret = 0;
|
||||
struct adbdev_state *state = file->private_data;
|
||||
struct adb_request *req;
|
||||
wait_queue_t wait = __WAITQUEUE_INITIALIZER(wait,current);
|
||||
DECLARE_WAITQUEUE(wait,current);
|
||||
unsigned long flags;
|
||||
|
||||
if (count < 2)
|
||||
|
Loading…
Reference in New Issue
Block a user