staging/iio: use module_platform_driver macro
authorDevendra Naga <develkernel412222@gmail.com>
Sat, 21 Jul 2012 08:54:00 +0000 (09:54 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 14 Aug 2012 19:31:12 +0000 (20:31 +0100)
commitd16f6dbddbd7a2ac40e090da1e6bb7dd9b5a1dcb
tree71f7d36bf2590e4274568f2e2fe6ab7f13985ca0
parentf4e4b9558bc696cc89de460e754d3fecb50b13cb
staging/iio: use module_platform_driver macro

the code which under _init and _exit does only the platform_driver_register
and platform_driver_unregister, and nothing else,
so its better to use the module_platform_driver macro rather duplicating
its implementation

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_hwmon.c