diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-08 00:34:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-08 00:34:08 -0500 |
commit | 07b2463046247ce580ff9b37e91394f2f6424768 (patch) | |
tree | 6f6e79f132a2580c455a533f864492f0b34e54e2 /drivers/spi/spi_butterfly.c | |
parent | c4184f117af7441fb83bc413d2214d92920e0289 (diff) |
Revert "Driver core: convert SPI code to use struct device"
This reverts commit 2943ecf2ed32632473c06f1975db47a7aa98c10f.
This should go through the SPI maintainer, it was my fault that it did
not. Especially as it conflicts with other patches he has pending.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/spi/spi_butterfly.c')
-rw-r--r-- | drivers/spi/spi_butterfly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi_butterfly.c b/drivers/spi/spi_butterfly.c index 31b7970ae463..312987a03210 100644 --- a/drivers/spi/spi_butterfly.c +++ b/drivers/spi/spi_butterfly.c | |||
@@ -246,7 +246,7 @@ static void butterfly_attach(struct parport *p) | |||
246 | * and no way to be selective about what it binds to. | 246 | * and no way to be selective about what it binds to. |
247 | */ | 247 | */ |
248 | 248 | ||
249 | /* FIXME where should master->dev.parent come from? | 249 | /* FIXME where should master->cdev.dev come from? |
250 | * e.g. /sys/bus/pnp0/00:0b, some PCI thing, etc | 250 | * e.g. /sys/bus/pnp0/00:0b, some PCI thing, etc |
251 | * setting up a platform device like this is an ugly kluge... | 251 | * setting up a platform device like this is an ugly kluge... |
252 | */ | 252 | */ |
@@ -386,7 +386,7 @@ static void butterfly_detach(struct parport *p) | |||
386 | butterfly = NULL; | 386 | butterfly = NULL; |
387 | 387 | ||
388 | /* stop() unregisters child devices too */ | 388 | /* stop() unregisters child devices too */ |
389 | pdev = to_platform_device(pp->bitbang.master->dev.parent); | 389 | pdev = to_platform_device(pp->bitbang.master->cdev.dev); |
390 | status = spi_bitbang_stop(&pp->bitbang); | 390 | status = spi_bitbang_stop(&pp->bitbang); |
391 | 391 | ||
392 | /* turn off VCC */ | 392 | /* turn off VCC */ |