]> err.no Git - linux-2.6/commitdiff
[PATCH] more fallout from get_property returning pointer to const
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 23 Sep 2006 15:44:58 +0000 (16:44 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 23 Sep 2006 18:34:43 +0000 (11:34 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/platforms/powermac/feature.c
arch/powerpc/platforms/powermac/smp.c
drivers/char/briq_panel.c
drivers/video/riva/fbdev.c

index 13fcaf5b17960edbec0b8740550fa325006888bd..e49621be66400103b0e69c0f22d1e0d380c4e72f 100644 (file)
@@ -1058,8 +1058,8 @@ core99_reset_cpu(struct device_node *node, long param, long value)
        if (np == NULL)
                return -ENODEV;
        for (np = np->child; np != NULL; np = np->sibling) {
-               u32 *num = get_property(np, "reg", NULL);
-               u32 *rst = get_property(np, "soft-reset", NULL);
+               const u32 *num = get_property(np, "reg", NULL);
+               const u32 *rst = get_property(np, "soft-reset", NULL);
                if (num == NULL || rst == NULL)
                        continue;
                if (param == *num) {
index 653eeb64d1e28e448ef67191b7f38de13edbfa89..1949b657b0926158cf10fc2f226fc43b4600b695 100644 (file)
@@ -702,7 +702,7 @@ static void __init smp_core99_setup(int ncpus)
        /* GPIO based HW sync on ppc32 Core99 */
        if (pmac_tb_freeze == NULL && !machine_is_compatible("MacRISC4")) {
                struct device_node *cpu;
-               u32 *tbprop = NULL;
+               const u32 *tbprop = NULL;
 
                core99_tb_gpio = KL_GPIO_TB_ENABLE;     /* default value */
                cpu = of_find_node_by_type(NULL, "cpu");
index a0e5eac5f33aa73821c0fe4f87e339034178009d..caae795dd3e79f0c265460b32d148012f8b288af 100644 (file)
@@ -202,7 +202,7 @@ static struct miscdevice briq_panel_miscdev = {
 static int __init briq_panel_init(void)
 {
        struct device_node *root = find_path_device("/");
-       char *machine;
+       const char *machine;
        int i;
 
        machine = get_property(root, "model", NULL);
index 67d1e1c8813d3ac55f4504400c1e2a99be403218..61a4665fb4863247a39024db50d6e29c3e4d49a6 100644 (file)
@@ -1827,7 +1827,7 @@ static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd)
        struct riva_par *par = info->par;
        struct device_node *dp;
        unsigned char *pedid = NULL;
-       unsigned char *disptype = NULL;
+       const unsigned char *disptype = NULL;
        static char *propnames[] = {
                "DFP,EDID", "LCD,EDID", "EDID", "EDID1", "EDID,B", "EDID,A", NULL };
        int i;