Skip to content

Commit cdd7bbc

Browse files
krzkherbertx
authored andcommitted
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>
1 parent 7e8f232 commit cdd7bbc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/char/hw_random/bcm2835-rng.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static const struct of_device_id bcm2835_rng_of_match[] = {
138138
{ .compatible = "brcm,bcm6368-rng"},
139139
{},
140140
};
141+
MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match);
141142

142143
static int bcm2835_rng_probe(struct platform_device *pdev)
143144
{
@@ -191,8 +192,6 @@ static int bcm2835_rng_probe(struct platform_device *pdev)
191192
return err;
192193
}
193194

194-
MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match);
195-
196195
static const struct platform_device_id bcm2835_rng_devtype[] = {
197196
{ .name = "bcm2835-rng" },
198197
{ .name = "bcm63xx-rng" },

0 commit comments

Comments
 (0)