From: "Colin Leroy" <colin@colino.net>
To: "Geert Uytterhoeven" <geert@linux-m68k.org>
Cc: "Linux/PPC Development" <linuxppc-dev@lists.linuxppc.org>,
"Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Subject: Re: [PATCH] therm_* drivers need i2c-keywest
Date: Fri, 16 Jan 2004 13:44:01 +0100 [thread overview]
Message-ID: <152001c3dc2e$6b36ddb0$3cc8a8c0@ANOSP> (raw)
In-Reply-To: Pine.GSO.4.58.0401161302570.14892@waterleaf.sonytel.be
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
hi,
> And you want to drop the #ifdef CONFIG_KMOD, since that's already in
> <linux/kmod.h>.
Sure, here it is.
--
Colin
Ne disez pas disez, mais disez dites
[-- Attachment #2: therm_load_i2c.diff --]
[-- Type: application/octet-stream, Size: 2275 bytes --]
Index: drivers/macintosh/therm_adt7467.c
===================================================================
RCS file: /home/cvsroot/linuxppc/drivers/macintosh/therm_adt7467.c,v
retrieving revision 1.1
diff -u -u -r1.1 therm_adt7467.c
--- drivers/macintosh/therm_adt7467.c 11 Jan 2004 20:21:54 -0000 1.1
+++ drivers/macintosh/therm_adt7467.c 16 Jan 2004 12:47:07 -0000
@@ -27,6 +27,7 @@
#include <asm/system.h>
#include <asm/sections.h>
#include <asm/of_device.h>
+#include <linux/kmod.h>
#undef DEBUG
@@ -424,6 +425,7 @@
device_create_file(&of_dev->dev, &dev_attr_gpu_limit);
device_create_file(&of_dev->dev, &dev_attr_fan_speed);
+ request_module("i2c-keywest");
return i2c_add_driver(&thermostat_driver);
}
Index: drivers/macintosh/therm_pm72.c
===================================================================
RCS file: /home/cvsroot/linuxppc/drivers/macintosh/therm_pm72.c,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 therm_pm72.c
--- drivers/macintosh/therm_pm72.c 8 Jan 2004 11:25:19 -0000 1.1.1.1
+++ drivers/macintosh/therm_pm72.c 16 Jan 2004 12:47:15 -0000
@@ -91,6 +91,7 @@
#include <asm/system.h>
#include <asm/sections.h>
#include <asm/of_device.h>
+#include <linux/kmod.h>
#include "therm_pm72.h"
@@ -1165,6 +1166,7 @@
state = state_detached;
+ request_module("i2c-keywest");
rc = i2c_add_driver(&therm_pm72_driver);
if (rc < 0)
return rc;
Index: drivers/macintosh/therm_windtunnel.c
===================================================================
RCS file: /home/cvsroot/linuxppc/drivers/macintosh/therm_windtunnel.c,v
retrieving revision 1.1
diff -u -u -r1.1 therm_windtunnel.c
--- drivers/macintosh/therm_windtunnel.c 11 Jan 2004 20:21:55 -0000 1.1
+++ drivers/macintosh/therm_windtunnel.c 16 Jan 2004 12:47:23 -0000
@@ -44,6 +44,7 @@
#include <asm/io.h>
#include <asm/system.h>
#include <asm/sections.h>
+#include <linux/kmod.h>
MODULE_AUTHOR("Samuel Rydh <samuel@ibrium.se>");
MODULE_DESCRIPTION("Apple G4 (windtunnel) fan driver");
@@ -380,6 +381,7 @@
printk(KERN_ERR "g4fan: unsupported machine type\n");
return -ENODEV;
}
+ request_module("i2c-keywest");
if( (ret=i2c_add_driver(&g4fan_driver)) )
return ret;
next prev parent reply other threads:[~2004-01-16 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 11:27 [PATCH] therm_* drivers need i2c-keywest Colin Leroy
2004-01-16 11:41 ` Colin Leroy
2004-01-16 12:03 ` Geert Uytterhoeven
2004-01-16 12:44 ` Colin Leroy [this message]
2004-01-16 16:44 ` valvoline
2004-01-17 9:41 ` Colin Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='152001c3dc2e$6b36ddb0$3cc8a8c0@ANOSP' \
--to=colin@colino.net \
--cc=benh@kernel.crashing.org \
--cc=geert@linux-m68k.org \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).