Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74277
b: refs/heads/master
c: 498f26b
h: refs/heads/master
i:
  74275: 5b2fac9
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Nov 27, 2007
1 parent 78c71f0 commit 0cd5c46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0546cb045ea487d8702c5ae4da6e0eab7baa17ba
refs/heads/master: 498f26b45cfc2e16d15f0416a40bc01156c43e92
7 changes: 4 additions & 3 deletions trunk/drivers/ide/legacy/ali14xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@

/* port addresses for auto-detection */
#define ALI_NUM_PORTS 4
static int ports[ALI_NUM_PORTS] __initdata = {0x074, 0x0f4, 0x034, 0x0e4};
static const int ports[ALI_NUM_PORTS] __initdata =
{ 0x074, 0x0f4, 0x034, 0x0e4 };

/* register initialization data */
typedef struct { u8 reg, data; } RegInitializer;

static RegInitializer initData[] __initdata = {
static const RegInitializer initData[] __initdata = {
{0x01, 0x0f}, {0x02, 0x00}, {0x03, 0x00}, {0x04, 0x00},
{0x05, 0x00}, {0x06, 0x00}, {0x07, 0x2b}, {0x0a, 0x0f},
{0x25, 0x00}, {0x26, 0x00}, {0x27, 0x00}, {0x28, 0x00},
Expand Down Expand Up @@ -177,7 +178,7 @@ static int __init findPort (void)
* Initialize controller registers with default values.
*/
static int __init initRegisters (void) {
RegInitializer *p;
const RegInitializer *p;
u8 t;
unsigned long flags;

Expand Down

0 comments on commit 0cd5c46

Please sign in to comment.