提交 3198514d 编写于 作者: S Stephen Rothwell 提交者: David S. Miller

[SPARC/64] constify of_get_property return: sound

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 66f3cb7c
......@@ -1067,8 +1067,8 @@ static int __devinit amd7930_attach_common(struct resource *rp, int irq)
static int __devinit amd7930_obio_attach(struct device_node *dp)
{
struct linux_prom_registers *regs;
struct linux_prom_irqs *irqp;
const struct linux_prom_registers *regs;
const struct linux_prom_irqs *irqp;
struct resource res, *rp;
int len;
......
......@@ -2284,7 +2284,7 @@ static int __init cs4231_init(void)
if (!strcmp(edev->prom_node->name, "SUNW,CS4231")) {
match = 1;
} else if (!strcmp(edev->prom_node->name, "audio")) {
char *compat;
const char *compat;
compat = of_get_property(edev->prom_node,
"compatible", NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册