linux-mips
[Top] [All Lists]

[PATCH 05/10] bcm63xx: dev-enet: initialize shared_device_registered to

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>, Maxime Bizon <mbizon@freebox.fr>
Subject: [PATCH 05/10] bcm63xx: dev-enet: initialize shared_device_registered to 0
From: Florian Fainelli <florian@openwrt.org>
Date: Sun, 31 May 2009 20:28:37 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:content-type :content-transfer-encoding:content-disposition:message-id; bh=p90N67p4YOCdYnQzOV6oB5/Ryg4mhUoMJXAZXKIfv9U=; b=mgn07caOXE3j0t25LmXSv8Qyjqcbzd1XiAPawHaumz+yjEUcU6L2oaoWMCvRPowlLp L9XDZu40+VPiCZYhn1EOQIokrc21C1iT13YjUvVN8JjLT6YIrBB9DAlINSvjzqQ/oq7X IyGHaHtMDehw3NVHz0tbLfE4gV6cdvZMNIsls=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to :content-type:content-transfer-encoding:content-disposition :message-id; b=NukLyb4MxrjM762U4jHrz0blPiE4lLtOi0ii5myPY0nrPoBzZaUpO2eohwSM0zOQpA IDHOejsyOS+6uVggK3fWN/LnwtAYupPLrNyarjurDRu/xqWomUG+sbe50ng3JDT9WUdk Z/zJ9U+Yn3+j+gXxcTh6tG8TILmQYfQCWmOsE=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This patch initialize the shared_device_registered
variable with 0, actually required for the check
to be working.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
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[] = {
        {

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 05/10] bcm63xx: dev-enet: initialize shared_device_registered to 0, Florian Fainelli <=