|
@@ -226,8 +226,7 @@ static void __init pegasos_set_l2cr(void)
|
|
|
/* Enable L2 cache if needed */
|
|
|
np = find_type_devices("cpu");
|
|
|
if (np != NULL) {
|
|
|
- unsigned int *l2cr = (unsigned int *)
|
|
|
- get_property (np, "l2cr", NULL);
|
|
|
+ const unsigned int *l2cr = get_property(np, "l2cr", NULL);
|
|
|
if (l2cr == NULL) {
|
|
|
printk ("Pegasos l2cr : no cpu l2cr property found\n");
|
|
|
return;
|
|
@@ -252,7 +251,7 @@ static void briq_restart(char *cmd)
|
|
|
void __init chrp_setup_arch(void)
|
|
|
{
|
|
|
struct device_node *root = find_path_device ("/");
|
|
|
- char *machine = NULL;
|
|
|
+ const char *machine = NULL;
|
|
|
|
|
|
/* init to some ~sane value until calibrate_delay() runs */
|
|
|
loops_per_jiffy = 50000000/HZ;
|
|
@@ -353,7 +352,7 @@ static void __init chrp_find_openpic(void)
|
|
|
struct device_node *np, *root;
|
|
|
int len, i, j;
|
|
|
int isu_size, idu_size;
|
|
|
- unsigned int *iranges, *opprop = NULL;
|
|
|
+ const unsigned int *iranges, *opprop = NULL;
|
|
|
int oplen = 0;
|
|
|
unsigned long opaddr;
|
|
|
int na = 1;
|
|
@@ -363,8 +362,7 @@ static void __init chrp_find_openpic(void)
|
|
|
return;
|
|
|
root = of_find_node_by_path("/");
|
|
|
if (root) {
|
|
|
- opprop = (unsigned int *) get_property
|
|
|
- (root, "platform-open-pic", &oplen);
|
|
|
+ opprop = get_property(root, "platform-open-pic", &oplen);
|
|
|
na = prom_n_addr_cells(root);
|
|
|
}
|
|
|
if (opprop && oplen >= na * sizeof(unsigned int)) {
|
|
@@ -381,7 +379,7 @@ static void __init chrp_find_openpic(void)
|
|
|
|
|
|
printk(KERN_INFO "OpenPIC at %lx\n", opaddr);
|
|
|
|
|
|
- iranges = (unsigned int *) get_property(np, "interrupt-ranges", &len);
|
|
|
+ iranges = get_property(np, "interrupt-ranges", &len);
|
|
|
if (iranges == NULL)
|
|
|
len = 0; /* non-distributed mpic */
|
|
|
else
|
|
@@ -467,8 +465,8 @@ static void __init chrp_find_8259(void)
|
|
|
* from anyway
|
|
|
*/
|
|
|
for (np = find_devices("pci"); np != NULL; np = np->next) {
|
|
|
- unsigned int *addrp = (unsigned int *)
|
|
|
- get_property(np, "8259-interrupt-acknowledge", NULL);
|
|
|
+ const unsigned int *addrp = get_property(np,
|
|
|
+ "8259-interrupt-acknowledge", NULL);
|
|
|
|
|
|
if (addrp == NULL)
|
|
|
continue;
|
|
@@ -527,7 +525,7 @@ void __init
|
|
|
chrp_init2(void)
|
|
|
{
|
|
|
struct device_node *device;
|
|
|
- unsigned int *p = NULL;
|
|
|
+ const unsigned int *p = NULL;
|
|
|
|
|
|
#ifdef CONFIG_NVRAM
|
|
|
chrp_nvram_init();
|
|
@@ -545,8 +543,7 @@ chrp_init2(void)
|
|
|
*/
|
|
|
device = find_devices("rtas");
|
|
|
if (device)
|
|
|
- p = (unsigned int *) get_property
|
|
|
- (device, "rtas-event-scan-rate", NULL);
|
|
|
+ p = get_property(device, "rtas-event-scan-rate", NULL);
|
|
|
if (p && *p) {
|
|
|
/*
|
|
|
* Arrange to call chrp_event_scan at least *p times
|