Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /drivers/sbus/sbus.c

Filename:/drivers/sbus/sbus.c
Lines Added:9
Lines Deleted:5
Also changed in: (Previous) 2.4.1-pre12  2.4.0-test11 
(Following) 2.4.1-ac9  2.4.1-ac10  2.4.1-ac11  2.4.1-ac12  2.4.1-ac13  2.4.1-ac14 

Location
[  2.4.1
  [  drivers
    [  sbus
       o  sbus.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/sbus/sbus.c linux/drivers/sbus/sbus.c
--- v2.4.0/linux/drivers/sbus/sbus.c   Thu Nov  9 15:57:41 2000
+++ linux/drivers/sbus/sbus.c   Mon Jan 29 08:08:46 2001
@@ -1,4 +1,4 @@
-/* $Id: sbus.c,v 1.91 2000/11/08 05:04:06 davem Exp $
+/* $Id: sbus.c,v 1.92 2001/01/25 17:15:59 davem Exp $
  * sbus.c:  SBus support routines.
  *
  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -238,10 +238,14 @@
                break;
          }
          if (rngnum == num_ranges) {
-            prom_printf("sbus_apply_ranges: Cannot find matching "
-                   "range nregs[%d] nranges[%d].\n",
-                   num_regs, num_ranges);
-            prom_halt();
+            /* We used to flag this as an error.  Actually
+             * some devices do not report the regs as we expect.
+             * For example, see SUNW,pln device.  In that case
+             * the reg property is in a format internal to that
+             * node, ie. it is not in the SBUS register space
+             * per se. -DaveM
+             */
+            return;
          }
          regs[regnum].which_io = ranges[rngnum].ot_parent_space;
          regs[regnum].phys_addr += ranges[rngnum].ot_parent_base;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.