usb: ulpi: Automatically set driver::owner with ulpi_driver_register()
authorStephen Boyd <stephen.boyd@linaro.org>
Sun, 26 Jun 2016 05:38:21 +0000 (22:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Aug 2016 14:06:49 +0000 (16:06 +0200)
commit1ebe88d38ddec6b05f7b5e64acef30a98a4ad17e
treecc0a1eb5d909f3f61f66031b58b271c4b9d74eb8
parent3cc7e7b7872ebd0f200b5450f5471bc3700de141
usb: ulpi: Automatically set driver::owner with ulpi_driver_register()

Let's follow other driver registration functions and
automatically set the driver's owner member to THIS_MODULE when
ulpi_driver_register() is called. This allows ulpi driver writers
to forget about this boiler plate detail and avoids common bugs
in the process.

Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/ulpi.c
include/linux/ulpi/driver.h