]> git.karo-electronics.de Git - linux-beck.git/blobdiff - sound/aoa/soundbus/core.c
[POWERPC] get_property returns const
[linux-beck.git] / sound / aoa / soundbus / core.c
index 47b3e3768df0b3b1f0dfe874bad806570f837d8d..45680b5ebc3534e918e713e8f3a2613e9979d6e7 100644 (file)
@@ -61,9 +61,10 @@ static int soundbus_uevent(struct device *dev, char **envp, int num_envp,
 {
        struct soundbus_dev * soundbus_dev;
        struct of_device * of;
-       char *scratch, *compat, *compat2;
+       char *scratch;
+       const char *compat;
        int i = 0;
-       int length, cplen, cplen2, seen = 0;
+       int length, cplen, seen = 0;
 
        if (!dev)
                return -ENODEV;
@@ -95,9 +96,7 @@ static int soundbus_uevent(struct device *dev, char **envp, int num_envp,
         * it's not really legal to split it out with commas. We split it
         * up using a number of environment variables instead. */
 
-       compat = (char *) get_property(of->node, "compatible", &cplen);
-       compat2 = compat;
-       cplen2= cplen;
+       compat = get_property(of->node, "compatible", &cplen);
        while (compat && cplen > 0) {
                envp[i++] = scratch;
                length = scnprintf (scratch, buffer_size,