Re: 2.4.13-pre1: sonypi.c compile error

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 12 Oct 2001 08:50:08 +0100 (BST)


> Now this is what we have here, I can not figure the intentions of the
> author:
>
> static int __init sonypi_init_module(void) {
> if (is_sony_vaio_laptop)
> return pci_module_init(&sonypi_driver);
> else
> return -ENODEV;
> }

is_sony_vaio_laptop is defined by the DMI layer if the machine is a Sony
vaio. It basically says "don't load this on a non vaio"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/