This patch initialize the shared_device_registered variable with 0, actually required for the check to be working. Signed-off-by: Maxime Bizon <mbizon@xxxxxxxxxx> Signed-off-by: Florian Fainelli <florian@xxxxxxxxxxx> --- diff --git a/arch/mips/bcm63xx/dev-enet.c b/arch/mips/bcm63xx/dev-enet.c index 51c2e5a..0298973 100644 --- a/arch/mips/bcm63xx/dev-enet.c +++ b/arch/mips/bcm63xx/dev-enet.c @@ -28,7 +28,7 @@ static struct platform_device bcm63xx_enet_shared_device = { .resource = shared_res, }; -static int shared_device_registered; +static int shared_device_registered = 0; static struct resource enet0_res[] = { {