| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] rb532: fix devices.c compilation |
| From: | Florian Fainelli <florian@openwrt.org> |
| Date: | Wed, 2 Dec 2009 13:07:01 +0100 |
| Cc: | ralf@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:organization:to:cc:content-type :content-transfer-encoding:message-id; bh=anD/4BEIJvCegGY/KvZ9kxxPT7V+iTVEO5UShj60ILM=; b=nfiaA19kbpmwfdUs5ItmDERRZXjKKeU+q8KU8gPy4ju3GKHUEdJ12gvPjN4cHQJvtf QpK+4fsk64e2neua2hVOiqe2Ohg3XjTOh84rZxROP2a7g2gSsbmNCpd/N7QEecK8MiVu 89ntscLqB0Q+zTJQhTAM7C2JSgCLgJqV06X8w= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:organization :to:cc:content-type:content-transfer-encoding:message-id; b=RG5icN8ESZoqV2GayemgPlNtYhnG7nXREcEaulYSeYduKHrW3vtcmwxQQkNTTRo3I+ kbWDM84LIQnkDzrt6V87VmQfbI03d6mY6WmuNmbb1TGfDmxFtEoPmldvMhVtvcFfSztZ w8+4/DYdfjVNsbjUdIuf6OsZQEfZ2eF6yg7o4= |
| Organization: | OpenWrt |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
We should now use dev_set_drvdata to set the driver
driver_data field.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 9f40e1f..041fc1a 100644
--- a/arch/mips/rb532/devices.c
+++ b/arch/mips/rb532/devices.c
@@ -110,7 +110,6 @@ static struct korina_device korina_dev0_data = {
static struct platform_device korina_dev0 = {
.id = -1,
.name = "korina",
- .dev.driver_data = &korina_dev0_data,
.resource = korina_dev0_res,
.num_resources = ARRAY_SIZE(korina_dev0_res),
};
@@ -332,6 +331,8 @@ static int __init plat_setup_devices(void)
/* set the uart clock to the current cpu frequency */
rb532_uart_res[0].uartclk = idt_cpu_freq;
+ dev_set_drvdata(&korina_dev0.dev, &korina_dev0_data);
+
return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs));
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Reserved instruction in kernel code, Ales Mulej |
|---|---|
| Next by Date: | [PATCH] rc32434_wdt: fix compilation failure, Florian Fainelli |
| Previous by Thread: | Reserved instruction in kernel code, Ales Mulej |
| Next by Thread: | Re: [PATCH] rb532: fix devices.c compilation, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |