diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
commit | 24a77daf3d80bddcece044e6dc3675e427eef3f3 (patch) | |
tree | 2c5e0b0bea394d6fe62c5d5857c252e83e48ac48 /sound/aoa/fabrics/snd-aoa-fabric-layout.c | |
parent | e389f9aec689209724105ae80a6c91fd2e747bc9 (diff) | |
parent | f900e9777fc9b65140cb9570438597bc8fae56ab (diff) |
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (255 commits)
[POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c
[POWERPC] remove kernel module option for booke wdt
[POWERPC] Avoid putting cpu node twice
[POWERPC] Spinlock initializer cleanup
[POWERPC] ppc4xx_sgdma needs dma-mapping.h
[POWERPC] arch/powerpc/sysdev/timer.c build fix
[POWERPC] get_property cleanups
[POWERPC] Remove the unused HTDMSOUND driver
[POWERPC] cell: cbe_cpufreq cleanup and crash fix
[POWERPC] Declare enable_kernel_spe in a header
[POWERPC] Add dt_xlate_addr() to bootwrapper
[POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE
[POWERPC] Don't define a custom bd_t for Xilixn Virtex based boards.
[POWERPC] Add sane defaults for Xilinx EDK generated xparameters files
[POWERPC] Add uartlite boot console driver for the zImage wrapper
[POWERPC] Stop using ppc_sys for Xilinx Virtex boards
[POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
[POWERPC] Merge common virtex header files
[POWERPC] Rework Kconfig dependancies for Xilinx Virtex ppc405 platform
[POWERPC] Clean up cpufreq Kconfig dependencies
...
Diffstat (limited to 'sound/aoa/fabrics/snd-aoa-fabric-layout.c')
-rw-r--r-- | sound/aoa/fabrics/snd-aoa-fabric-layout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/aoa/fabrics/snd-aoa-fabric-layout.c b/sound/aoa/fabrics/snd-aoa-fabric-layout.c index 1b94ba6dd279..98806283d1b2 100644 --- a/sound/aoa/fabrics/snd-aoa-fabric-layout.c +++ b/sound/aoa/fabrics/snd-aoa-fabric-layout.c | |||
@@ -724,7 +724,7 @@ static int check_codec(struct aoa_codec *codec, | |||
724 | struct layout_dev *ldev, | 724 | struct layout_dev *ldev, |
725 | struct codec_connect_info *cci) | 725 | struct codec_connect_info *cci) |
726 | { | 726 | { |
727 | u32 *ref; | 727 | const u32 *ref; |
728 | char propname[32]; | 728 | char propname[32]; |
729 | struct codec_connection *cc; | 729 | struct codec_connection *cc; |
730 | 730 | ||
@@ -732,7 +732,7 @@ static int check_codec(struct aoa_codec *codec, | |||
732 | if (codec->node && (strcmp(codec->node->name, "codec") == 0)) { | 732 | if (codec->node && (strcmp(codec->node->name, "codec") == 0)) { |
733 | snprintf(propname, sizeof(propname), | 733 | snprintf(propname, sizeof(propname), |
734 | "platform-%s-codec-ref", codec->name); | 734 | "platform-%s-codec-ref", codec->name); |
735 | ref = (u32*)get_property(ldev->sound, propname, NULL); | 735 | ref = of_get_property(ldev->sound, propname, NULL); |
736 | if (!ref) { | 736 | if (!ref) { |
737 | printk(KERN_INFO "snd-aoa-fabric-layout: " | 737 | printk(KERN_INFO "snd-aoa-fabric-layout: " |
738 | "required property %s not present\n", propname); | 738 | "required property %s not present\n", propname); |
@@ -946,7 +946,7 @@ static struct aoa_fabric layout_fabric = { | |||
946 | static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) | 946 | static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) |
947 | { | 947 | { |
948 | struct device_node *sound = NULL; | 948 | struct device_node *sound = NULL; |
949 | unsigned int *layout_id; | 949 | const unsigned int *layout_id; |
950 | struct layout *layout; | 950 | struct layout *layout; |
951 | struct layout_dev *ldev = NULL; | 951 | struct layout_dev *ldev = NULL; |
952 | int err; | 952 | int err; |
@@ -962,7 +962,7 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) | |||
962 | } | 962 | } |
963 | if (!sound) return -ENODEV; | 963 | if (!sound) return -ENODEV; |
964 | 964 | ||
965 | layout_id = (unsigned int *) get_property(sound, "layout-id", NULL); | 965 | layout_id = of_get_property(sound, "layout-id", NULL); |
966 | if (!layout_id) | 966 | if (!layout_id) |
967 | goto outnodev; | 967 | goto outnodev; |
968 | printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d\n", | 968 | printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d\n", |