Skip to content

Commit

Permalink
Staging: comedi: serial2002: Fix filp_open usage
Browse files Browse the repository at this point in the history
Signed-off-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
OGAWAHirofumi authored and gregkh committed Mar 4, 2010
1 parent 9f7a344 commit 2021937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2021937

Please sign in to comment.