From: H Hartley Sweeten Date: Tue, 14 May 2013 21:28:01 +0000 (-0700) Subject: staging: comedi: dt9812: use module_comedi_usb_driver() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~620 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e8917b3828dbb05874a54dd36779f11a6ea56fa;p=pandora-kernel.git staging: comedi: dt9812: use module_comedi_usb_driver() Now that the semaphore used by the comedi_driver is initialized when the comedi_device private data is allocated, the module_init() in this driver just clears the 'slot' data before calling comedi_usb_driver_register(). This static data will already be cleared when the driver is loaded. Replace the module_{init,exit}() with the module_comedi_usb_driver() macro to remove the boilerplate code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed