mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-23 22:28:57 +02:00
343c185b7d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16547 3c298f89-4303-0410-b956-a3cf2f4a3e73
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 13e26ba450f92bafe7dde67ad68779eeea65a53f Mon Sep 17 00:00:00 2001
|
|
From: Kurt Mahan <kmahan@freescale.com>
|
|
Date: Fri, 15 Feb 2008 15:36:04 -0700
|
|
Subject: [PATCH] Remove cdev as the structure has changed for 2.6.24.
|
|
|
|
LTIBName: m5445x-spi-cdev-remove
|
|
Signed-off-by: Kurt Mahan <kmahan@freescale.com>
|
|
---
|
|
drivers/spi/spi_coldfire.c | 4 ++--
|
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/spi/spi_coldfire.c
|
|
+++ b/drivers/spi/spi_coldfire.c
|
|
@@ -1115,7 +1115,7 @@ static int init_queue(struct driver_data
|
|
INIT_WORK(&drv_data->pump_messages, pump_messages/*, drv_data*/);
|
|
|
|
drv_data->workqueue = create_singlethread_workqueue(
|
|
- drv_data->master->cdev.dev->bus_id);
|
|
+ drv_data->master->dev.parent->bus_id);
|
|
if (drv_data->workqueue == NULL)
|
|
return -EBUSY;
|
|
|
|
@@ -1223,7 +1223,7 @@ static int coldfire_spi_probe(struct pla
|
|
if (!master)
|
|
return -ENOMEM;
|
|
|
|
- drv_data = class_get_devdata(&master->cdev);
|
|
+ drv_data = spi_master_get_devdata(master);
|
|
drv_data->master = master;
|
|
|
|
INIT_LIST_HEAD(&drv_data->queue);
|