From: Ian Abbott Date: Fri, 14 Sep 2012 16:34:13 +0000 (+0100) Subject: staging: comedi: ni_labpc: move labpc_driver and labpc_pci_table X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e51f0db14b4a2013f4f64885191076475c5b86f;p=pandora-kernel.git staging: comedi: ni_labpc: move labpc_driver and labpc_pci_table Move the `labpc_driver` and `labpc_pci_table` variables nearer the module initialization code near the bottom of the module for aesthetic reasons and to avoid a forward declaration of `labpc_attach()`. As a consequence, to avoid having to add a forward declaration of the `labpc_driver` variable, change code that uses `labpc_driver.driver_name` to use `DRV_NAME` instead, and change code that uses `labpc_driver.num_names` to use `ARRAY_SIZE(labpc_boards)` instead. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed