Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwrng: bcm2835 - Move MODULE_DEVICE_TABLE() to table definition

Convention is to place MODULE_DEVICE_TABLE() immediately after
definition of the affected table, so one can easily spot missing such.
There is on the other hand no benefits of putting MODULE_DEVICE_TABLE()
far away.

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Krzysztof Kozlowski and committed by
Herbert Xu
cdd7bbce 7e8f232a

+1 -2
+1 -2
drivers/char/hw_random/bcm2835-rng.c
··· 138 138 { .compatible = "brcm,bcm6368-rng"}, 139 139 {}, 140 140 }; 141 + MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match); 141 142 142 143 static int bcm2835_rng_probe(struct platform_device *pdev) 143 144 { ··· 191 190 192 191 return err; 193 192 } 194 - 195 - MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match); 196 193 197 194 static const struct platform_device_id bcm2835_rng_devtype[] = { 198 195 { .name = "bcm2835-rng" },