]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/macio_sysfs.c
[ARM] ARM SCSI: Don't try to dma_map_sg too many scatterlist entries
[linux-2.6-omap-h63xx.git] / drivers / macintosh / macio_sysfs.c
index cae24a13526a36a83498a9e2ad02ab1499d8ab2e..8566bdfdd4b88a072c49dfc96e4b62aa730ab7c6 100644 (file)
@@ -16,12 +16,12 @@ static ssize_t
 compatible_show (struct device *dev, struct device_attribute *attr, char *buf)
 {
        struct of_device *of;
-       char *compat;
+       const char *compat;
        int cplen;
        int length = 0;
 
        of = &to_macio_device (dev)->ofdev;
-       compat = (char *) get_property(of->node, "compatible", &cplen);
+       compat = get_property(of->node, "compatible", &cplen);
        if (!compat) {
                *buf = '\0';
                return 0;
@@ -42,12 +42,12 @@ static ssize_t modalias_show (struct device *dev, struct device_attribute *attr,
                              char *buf)
 {
        struct of_device *of;
-       char *compat;
+       const char *compat;
        int cplen;
        int length;
 
        of = &to_macio_device (dev)->ofdev;
-       compat = (char *) get_property (of->node, "compatible", &cplen);
+       compat = get_property(of->node, "compatible", &cplen);
        if (!compat) compat = "", cplen = 1;
        length = sprintf (buf, "of:N%sT%s", of->node->name, of->node->type);
        buf += length;