]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/windfarm_smu_sat.c
IB/iser: Limit the max size of a scsi command
[linux-2.6-omap-h63xx.git] / drivers / macintosh / windfarm_smu_sat.c
index e295a07a1ebcaf535a389d501c83e06f88cd4056..aceb61d9fbc8dcbc377610ac0f95e4f6b5d1c40f 100644 (file)
@@ -233,15 +233,15 @@ static void wf_sat_create(struct i2c_adapter *adapter, struct device_node *dev)
 {
        struct wf_sat *sat;
        struct wf_sat_sensor *sens;
-       u32 *reg;
-       char *loc, *type;
+       const u32 *reg;
+       const char *loc, *type;
        u8 addr, chip, core;
        struct device_node *child;
        int shift, cpu, index;
        char *name;
        int vsens[2], isens[2];
 
-       reg = (u32 *) get_property(dev, "reg", NULL);
+       reg = get_property(dev, "reg", NULL);
        if (reg == NULL)
                return;
        addr = *reg;
@@ -268,7 +268,7 @@ static void wf_sat_create(struct i2c_adapter *adapter, struct device_node *dev)
        isens[0] = isens[1] = -1;
        child = NULL;
        while ((child = of_get_next_child(dev, child)) != NULL) {
-               reg = (u32 *) get_property(child, "reg", NULL);
+               reg = get_property(child, "reg", NULL);
                type = get_property(child, "device_type", NULL);
                loc = get_property(child, "location", NULL);
                if (reg == NULL || loc == NULL)