Daniel Wendt daniel.wendt@linux.com writes:
Is this patch okay so far? Are there any other comments on what I can do better?
There is still a lot of duplication, you could simply store the registry key handle somewhere after creation. Also note that a better fix would be to use stable driver UUIDs, cf. Zhiyi's recent patches.