[PATCH] DMI-based module autoloading, second try

2007-05-08 Thread Lennart Poettering
From: Lennart Poettering <[EMAIL PROTECTED]> This is the second version of the patch I sent yesterday which adds DMI-based module autoloading to the Linux kernel. I fixed all the issues Björn Steinbrink pointed out. (Thanks, btw!) Again, the explanation: The patch below adds DMI/SMBIOS based mod

Re: [PATCH] DMI-based module autoloading

2007-05-08 Thread Lennart Poettering
On Mon, 07.05.07 18:27, Greg KH ([EMAIL PROTECTED]) wrote: Hi! > On Tue, May 08, 2007 at 02:54:29AM +0200, Lennart Poettering wrote: > > To take advantage of DMI based module autoloading, a driver should > > export one or more MODULE_ALIAS fields similar to these: > > > > MODULE_ALIAS("dmi:*:svn

Re: [PATCH] DMI-based module autoloading

2007-05-07 Thread Björn Steinbrink
On 2007.05.08 02:54:29 +0200, Lennart Poettering wrote: > From: Lennart Poettering <[EMAIL PROTECTED]> > +#define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) > \ Hm, too many tabs here? Wraps for me with tabsize=8. > +static ssize_t sys_dmi_##_name##_show

Re: [PATCH] DMI-based module autoloading

2007-05-07 Thread Greg KH
On Tue, May 08, 2007 at 02:54:29AM +0200, Lennart Poettering wrote: > To take advantage of DMI based module autoloading, a driver should > export one or more MODULE_ALIAS fields similar to these: > > MODULE_ALIAS("dmi:*:svnMICRO-STARINT'LCO.,LTD:pnMS-1013:pvr0131*:cvnMICRO-STARINT'LCO.,LTD:ct10:*"

[PATCH] DMI-based module autoloading

2007-05-07 Thread Lennart Poettering
From: Lennart Poettering <[EMAIL PROTECTED]> Hi! The patch below adds DMI/SMBIOS based module autoloading to the Linux kernel. The idea is to load laptop drivers automatically (and other drivers which cannot be autoloaded otherwise), based on the DMI system identification information of the BIOS.