[x86] add olpc 2.6.31 configuration, forward port the block2mtd patch, refresh patches
[openwrt.git] / target / linux / coldfire / patches / 043-m5445x_spi_cdev_remove.patch
1 From 13e26ba450f92bafe7dde67ad68779eeea65a53f Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Fri, 15 Feb 2008 15:36:04 -0700
4 Subject: [PATCH] Remove cdev as the structure has changed for 2.6.24.
5
6 LTIBName: m5445x-spi-cdev-remove
7 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
8 ---
9 drivers/spi/spi_coldfire.c | 4 ++--
10 1 files changed, 2 insertions(+), 2 deletions(-)
11
12 --- a/drivers/spi/spi_coldfire.c
13 +++ b/drivers/spi/spi_coldfire.c
14 @@ -1115,7 +1115,7 @@ static int init_queue(struct driver_data
15 INIT_WORK(&drv_data->pump_messages, pump_messages/*, drv_data*/);
16
17 drv_data->workqueue = create_singlethread_workqueue(
18 - drv_data->master->cdev.dev->bus_id);
19 + drv_data->master->dev.parent->bus_id);
20 if (drv_data->workqueue == NULL)
21 return -EBUSY;
22
23 @@ -1223,7 +1223,7 @@ static int coldfire_spi_probe(struct pla
24 if (!master)
25 return -ENOMEM;
26
27 - drv_data = class_get_devdata(&master->cdev);
28 + drv_data = spi_master_get_devdata(master);
29 drv_data->master = master;
30
31 INIT_LIST_HEAD(&drv_data->queue);
This page took 0.055396 seconds and 5 git commands to generate.