diff options
-rw-r--r-- | Documentation/serial/tty.txt | 2 | ||||
-rw-r--r-- | drivers/pps/clients/pps-ldisc.c | 8 | ||||
-rw-r--r-- | include/linux/tty_ldisc.h | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/Documentation/serial/tty.txt b/Documentation/serial/tty.txt index 7c900507279f..540db41dfd5d 100644 --- a/Documentation/serial/tty.txt +++ b/Documentation/serial/tty.txt | |||
@@ -107,7 +107,7 @@ write_wakeup() - May be called at any point between open and close. | |||
107 | 107 | ||
108 | dcd_change() - Report to the tty line the current DCD pin status | 108 | dcd_change() - Report to the tty line the current DCD pin status |
109 | changes and the relative timestamp. The timestamp | 109 | changes and the relative timestamp. The timestamp |
110 | can be NULL. | 110 | cannot be NULL. |
111 | 111 | ||
112 | 112 | ||
113 | Driver Access | 113 | Driver Access |
diff --git a/drivers/pps/clients/pps-ldisc.c b/drivers/pps/clients/pps-ldisc.c index 1b3c6eda12ba..79451f2dea6a 100644 --- a/drivers/pps/clients/pps-ldisc.c +++ b/drivers/pps/clients/pps-ldisc.c | |||
@@ -32,14 +32,6 @@ static void pps_tty_dcd_change(struct tty_struct *tty, unsigned int status, | |||
32 | struct pps_event_time *ts) | 32 | struct pps_event_time *ts) |
33 | { | 33 | { |
34 | struct pps_device *pps = (struct pps_device *)tty->disc_data; | 34 | struct pps_device *pps = (struct pps_device *)tty->disc_data; |
35 | struct pps_event_time __ts; | ||
36 | |||
37 | /* First of all we get the time stamp... */ | ||
38 | pps_get_ts(&__ts); | ||
39 | |||
40 | /* Does caller give us a timestamp? */ | ||
41 | if (!ts) /* No. Do it ourself! */ | ||
42 | ts = &__ts; | ||
43 | 35 | ||
44 | BUG_ON(pps == NULL); | 36 | BUG_ON(pps == NULL); |
45 | 37 | ||
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index 763e061e19f1..ff7dc08696a8 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h | |||
@@ -104,7 +104,7 @@ | |||
104 | * struct pps_event_time *ts) | 104 | * struct pps_event_time *ts) |
105 | * | 105 | * |
106 | * Tells the discipline that the DCD pin has changed its status and | 106 | * Tells the discipline that the DCD pin has changed its status and |
107 | * the relative timestamp. Pointer ts can be NULL. | 107 | * the relative timestamp. Pointer ts cannot be NULL. |
108 | */ | 108 | */ |
109 | 109 | ||
110 | #include <linux/fs.h> | 110 | #include <linux/fs.h> |