projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pci-quirks: disable MSI on RS400-200 and RS480
[powerpc.git]
/
drivers
/
macintosh
/
therm_windtunnel.c
diff --git
a/drivers/macintosh/therm_windtunnel.c
b/drivers/macintosh/therm_windtunnel.c
index
738faab
..
35233de
100644
(file)
--- a/
drivers/macintosh/therm_windtunnel.c
+++ b/
drivers/macintosh/therm_windtunnel.c
@@
-36,12
+36,13
@@
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/init.h>
+
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/sections.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/sections.h>
-#include <asm/of_
device
.h>
+#include <asm/of_
platform
.h>
#include <asm/macio.h>
#define LOG_TEMP 0 /* continously log temperature */
#include <asm/macio.h>
#define LOG_TEMP 0 /* continously log temperature */
@@
-491,7
+492,7
@@
g4fan_init( void )
if( !(np=of_find_node_by_name(NULL, "power-mgt")) )
return -ENODEV;
if( !(np=of_find_node_by_name(NULL, "power-mgt")) )
return -ENODEV;
- info = get_property(np, "thermal-info", NULL);
+ info =
of_
get_property(np, "thermal-info", NULL);
of_node_put(np);
if( !info || !machine_is_compatible("PowerMac3,6") )
of_node_put(np);
if( !info || !machine_is_compatible("PowerMac3,6") )
@@
-511,14
+512,14
@@
g4fan_init( void )
return -ENODEV;
}
return -ENODEV;
}
- of_register_driver( &therm_of_driver );
+ of_register_
platform_
driver( &therm_of_driver );
return 0;
}
static void __exit
g4fan_exit( void )
{
return 0;
}
static void __exit
g4fan_exit( void )
{
- of_unregister_driver( &therm_of_driver );
+ of_unregister_
platform_
driver( &therm_of_driver );
if( x.of_dev )
of_device_unregister( x.of_dev );
if( x.of_dev )
of_device_unregister( x.of_dev );