2010-01-16 01:12:54 +01:00
|
|
|
Make our PV drivers work with older hosts that do not recognize the new PV driver protocol.
|
|
|
|
|
|
|
|
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
|
|
|
|
|
|
|
|
Index: xen-4.0.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
|
|
===================================================================
|
|
|
|
--- xen-4.0.0-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
|
|
+++ xen-4.0.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
2010-03-02 01:46:56 +01:00
|
|
|
@@ -320,7 +320,10 @@ static int check_platform_magic(struct d
|
2010-01-16 01:12:54 +01:00
|
|
|
|
|
|
|
if (magic != XEN_IOPORT_MAGIC_VAL) {
|
2010-03-02 01:46:56 +01:00
|
|
|
err = "unrecognised magic value";
|
|
|
|
- goto no_dev;
|
|
|
|
+ /*
|
2010-01-16 01:12:54 +01:00
|
|
|
+ * Older backend; just return 0 to be compatible.
|
|
|
|
+ */
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
protocol = inb(XEN_IOPORT_PROTOVER);
|