Skip to content

Commit

Permalink
gpio, bcm-kona, LLVMLinux: Remove use of __initconst
Browse files Browse the repository at this point in the history
The __initconst is in the wrong place, and when moved to the correct place
it uncovers an error where the variable is used by non-init data structures.

Instead merely make them const and put the const in the right spot.

Signed-off-by: Behan Webster <[email protected]>
Reviewed-by: Mark Charlebois <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Acked-by: Matt Porter <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
behanw authored and linusw committed Sep 24, 2014
1 parent 1b4c5a6 commit 3778129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-bcm-kona.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ static struct irq_chip bcm_gpio_irq_chip = {
.irq_release_resources = bcm_kona_gpio_irq_relres,
};

static struct __initconst of_device_id bcm_kona_gpio_of_match[] = {
static struct of_device_id const bcm_kona_gpio_of_match[] = {
{ .compatible = "brcm,kona-gpio" },
{}
};
Expand Down

0 comments on commit 3778129

Please sign in to comment.