uio: add resource managed devm_uio_register_device() function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 6 Mar 2020 16:18:52 +0000 (18:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 11:34:10 +0000 (12:34 +0100)
commit86a78b1cfc78a6378c4ff3b30f822899c066dca5
tree9e1a3b4bc4ba47ae135c38900c3f28ff11af9781
parent05d67ec3ca59627f2c1dd62538a345c4a9cdff44
uio: add resource managed devm_uio_register_device() function

This change adds a resource managed equivalent of uio_register_device().
Not adding devm_uio_unregister_device(), since the intent is to discourage
it's usage. Having such a function may allow some bad driver designs. Most
users of devm_*register*() functions rarely use the unregister equivalents.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200306161853.25368-1-alexandru.ardelean@analog.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c
include/linux/uio_driver.h