Repository navigation
Commit a60a71b
Input: move name/timer init to input_alloc_dev()
We want to allow drivers to call input_event() at any time after the
device got allocated. This means input_event() and input_register_device()
must be allowed to run in parallel.
The only conflicting calls in input_register_device() are init_timer() and
dev_set_name(). Both can safely be moved to device allocation and we're
good to go.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent 2f0d260 commit a60a71b
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
| 1737 | + | |
1737 | 1738 | | |
1738 | 1739 | | |
1739 | 1740 | | |
| |||
1743 | 1744 | | |
1744 | 1745 | | |
1745 | 1746 | | |
| 1747 | + | |
1746 | 1748 | | |
1747 | 1749 | | |
1748 | 1750 | | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1749 | 1754 | | |
1750 | 1755 | | |
1751 | 1756 | | |
| |||
2019 | 2024 | | |
2020 | 2025 | | |
2021 | 2026 | | |
2022 | | - | |
2023 | 2027 | | |
2024 | 2028 | | |
2025 | 2029 | | |
| |||
2059 | 2063 | | |
2060 | 2064 | | |
2061 | 2065 | | |
2062 | | - | |
2063 | 2066 | | |
2064 | 2067 | | |
2065 | 2068 | | |
| |||
2073 | 2076 | | |
2074 | 2077 | | |
2075 | 2078 | | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
| |||
0 commit comments