Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57751
b: refs/heads/master
c: e9541d0
h: refs/heads/master
i:
  57749: a3480c3
  57747: 08cf9bb
  57743: a32464f
v: v3
  • Loading branch information
Helge Deller authored and Kyle McMartin committed May 27, 2007
1 parent 51b96d1 commit d3c5690
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 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: 25971f68d392f1816e21520e9e59648403b0bdad
refs/heads/master: e9541d0ca2a5d713c5d8dcb635d3f41e75c90bfb
10 changes: 5 additions & 5 deletions trunk/arch/parisc/kernel/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* so don't reference this table after starting the init process
*/

static struct hp_hardware hp_hardware_list[] __initdata = {
static struct hp_hardware hp_hardware_list[] __devinitdata = {
{HPHW_NPROC,0x01,0x4,0x0,"Indigo (840, 930)"},
{HPHW_NPROC,0x8,0x4,0x01,"Firefox(825,925)"},
{HPHW_NPROC,0xA,0x4,0x01,"Top Gun (835,834,935,635)"},
Expand Down Expand Up @@ -1219,7 +1219,7 @@ static struct hp_cpu_type_mask {
unsigned short model;
unsigned short mask;
enum cpu_type cpu;
} hp_cpu_type_mask_list[] __initdata = {
} hp_cpu_type_mask_list[] __devinitdata = {

{ 0x0000, 0x0ff0, pcx }, /* 0x0000 - 0x000f */
{ 0x0048, 0x0ff0, pcxl }, /* 0x0040 - 0x004f */
Expand Down Expand Up @@ -1300,7 +1300,7 @@ static struct hp_cpu_type_mask {
{ 0x0000, 0x0000, pcx } /* terminate table */
};

char *cpu_name_version[][2] = {
const char * const cpu_name_version[][2] = {
[pcx] = { "PA7000 (PCX)", "1.0" },
[pcxs] = { "PA7000 (PCX-S)", "1.1a" },
[pcxt] = { "PA7100 (PCX-T)", "1.1b" },
Expand All @@ -1316,7 +1316,7 @@ char *cpu_name_version[][2] = {
[mako2] = { "PA8900 (Shortfin)", "2.0" }
};

const char * __init
const char * __devinit
parisc_hardware_description(struct parisc_device_id *id)
{
struct hp_hardware *listptr;
Expand Down Expand Up @@ -1355,7 +1355,7 @@ parisc_hardware_description(struct parisc_device_id *id)


/* Interpret hversion (ret[0]) from PDC_MODEL(4)/PDC_MODEL_INFO(0) */
enum cpu_type __init
enum cpu_type __cpuinit
parisc_get_cpu_type(unsigned long hversion)
{
struct hp_cpu_type_mask *ptr;
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ extern int update_cr16_clocksource(void); /* from time.c */
* (return 1). If so, initialize the chip and tell other partners in crime
* they have work to do.
*/
static int __init processor_probe(struct parisc_device *dev)
static int __cpuinit processor_probe(struct parisc_device *dev)
{
unsigned long txn_addr;
unsigned long cpuid;
Expand Down Expand Up @@ -381,12 +381,12 @@ show_cpuinfo (struct seq_file *m, void *v)
return 0;
}

static struct parisc_device_id processor_tbl[] __read_mostly = {
static const struct parisc_device_id processor_tbl[] = {
{ HPHW_NPROC, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, SVERSION_ANY_ID },
{ 0, }
};

static struct parisc_driver cpu_driver __read_mostly = {
static struct parisc_driver cpu_driver = {
.name = "CPU",
.id_table = processor_tbl,
.probe = processor_probe
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-parisc/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum cpu_type {
mako2 = 12 /* pa8900 pa 2.0 */
};

extern char *cpu_name_version[][2]; /* mapping from enum cpu_type to strings */
extern const char * const cpu_name_version[][2]; /* mapping from enum cpu_type to strings */

struct parisc_driver;

Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-parisc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ struct system_cpuinfo_parisc {
char sys_model_name[81]; /* PDC-ROM returnes this model name */
} pdc;

char *cpu_name; /* e.g. "PA7300LC (PCX-L2)" */
char *family_name; /* e.g. "1.1e" */
const char *cpu_name; /* e.g. "PA7300LC (PCX-L2)" */
const char *family_name; /* e.g. "1.1e" */
};


Expand Down

0 comments on commit d3c5690

Please sign in to comment.