On Thu, 27 Apr 2006 00:24:11 +0200
Lennert Buytenhek <[EMAIL PROTECTED]> wrote:

> The ixp2000 driver for the enp2611 was developed on a board with
> three gigabit ports, but some enp2611 models only have two ports
> (and only one onboard PM3386.)  The current driver assumes there
> are always three ports and so it doesn't work on the two-port
> version of the board at all.
> 
> This patch adds a bit of logic to the enp2611 driver to limit the
> number of ports to 2 if the second PM3386 isn't detected.
> 
> Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>

This patch got mangled, that is probably why jeff didn't apply it before
he left. I had to fix it manually.

patching file drivers/net/ixp2000/enp2611.c
patch: **** malformed patch at line 106:
module_init(enp2611_init_module);

In this part...

@@ -236,8 +240,10 @@
        del_timer_sync(&link_check_timer);
 
        ixpdev_deinit();
-       for (i = 0; i < 3; i++)
-               free_netdev(nds[i]);
+       for (i = 0; i < 3; i++) {
+               if (nds[i] != NULL)
                        free_netdev(nds[i]);
+       }
 }
 
 module_init(enp2611_init_module);
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to