On Thu, Dec 26, 2013 at 11:33:06PM +0100, Hans de Goede wrote: > On 12/26/2013 11:15 PM, Dmitry Torokhov wrote: > > > >Are we 1000% sure that the device is quiesced here and we will not get a > >stray interrupt? Even if we are sure I'd still rather allocate input > >device earlier, together with ts structure. > > I will change things to allocate the input device earlier. What about > registering it, when is the best time to do that? The common pattern for the most input drivers is to register it last, but that usually matters when you are not using managed input devices since it helps making error unwinding path simpler. I'd still register it last just so it looks the same as the rest of the drivers. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html