Staging: comedi: serial2002: Fix filp_open usage
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
9f7a344b69
commit
2021937c6d
@ -397,7 +397,7 @@ static void serial_2002_open(struct comedi_device *dev)
|
||||
char port[20];
|
||||
|
||||
sprintf(port, "/dev/ttyS%d", devpriv->port);
|
||||
devpriv->tty = filp_open(port, 0, O_RDWR);
|
||||
devpriv->tty = filp_open(port, O_RDWR, 0);
|
||||
if (IS_ERR(devpriv->tty)) {
|
||||
printk("serial_2002: file open error = %ld\n",
|
||||
PTR_ERR(devpriv->tty));
|
||||
|
Loading…
Reference in New Issue
Block a user