Commit 4bee83fb authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/davem/sparc-2.5

into home.osdl.org:/home/torvalds/v2.5/linux
parents ab168caf d7633636
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include <asm/io.h>
/* GPIO register locations */ /* GPIO register locations */
#define I810_IOCONTROL_OFFSET 0x5000 #define I810_IOCONTROL_OFFSET 0x5000
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include <asm/io.h>
/* /*
* driver configuration * driver configuration
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include <asm/io.h>
/* 3DFX defines */ /* 3DFX defines */
#define PCI_CHIP_SAVAGE3D 0x8A20 #define PCI_CHIP_SAVAGE3D 0x8A20
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <asm/io.h>
static int blacklist[] = { static int blacklist[] = {
PCI_DEVICE_ID_SI_540, PCI_DEVICE_ID_SI_540,
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <asm/io.h>
/* SIS630 SMBus registers */ /* SIS630 SMBus registers */
#define SMB_STS 0x80 /* status */ #define SMB_STS 0x80 /* status */
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include <asm/io.h>
/* Power management registers */ /* Power management registers */
#define PM_CFG_REVID 0x08 /* silicon revision code */ #define PM_CFG_REVID 0x08 /* silicon revision code */
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-algo-bit.h> #include <linux/i2c-algo-bit.h>
#include <asm/io.h>
/* the only registers we use */ /* the only registers we use */
#define REG 0x78 #define REG 0x78
......
...@@ -33,9 +33,9 @@ typedef struct { volatile int counter; } atomic_t; ...@@ -33,9 +33,9 @@ typedef struct { volatile int counter; } atomic_t;
* 31 8 7 0 * 31 8 7 0
*/ */
#define ATOMIC_INIT(i) { (i << 8) } #define ATOMIC_INIT(i) { ((i) << 8) }
static __inline__ int atomic_read(atomic_t *v) static __inline__ int atomic_read(const atomic_t *v)
{ {
int ret = v->counter; int ret = v->counter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment