Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47932
b: refs/heads/master
c: 0ffa028
h: refs/heads/master
v: v3
  • Loading branch information
Hans-Peter Nilsson authored and Linus Torvalds committed Feb 12, 2007
1 parent d34d3cf commit 4c5bf31
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f8c7619ea1ff5ab8e0b08c8120d629834ef4253
refs/heads/master: 0ffa0285052607513a29f529ddb5061c907fd8a6
4 changes: 2 additions & 2 deletions trunk/drivers/spi/pxa2xx_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,9 +1214,9 @@ static int setup(struct spi_device *spi)
return 0;
}

static void cleanup(const struct spi_device *spi)
static void cleanup(struct spi_device *spi)
{
struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi);
struct chip_data *chip = spi_get_ctldata(spi);

kfree(chip);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
static void spidev_release(struct device *dev)
{
const struct spi_device *spi = to_spi_device(dev);
struct spi_device *spi = to_spi_device(dev);

/* spi masters may cleanup for released devices */
if (spi->master->cleanup)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/spi/spi_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ EXPORT_SYMBOL_GPL(spi_bitbang_setup);
/**
* spi_bitbang_cleanup - default cleanup for per-word I/O loops
*/
void spi_bitbang_cleanup(const struct spi_device *spi)
void spi_bitbang_cleanup(struct spi_device *spi)
{
kfree(spi->controller_state);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/spi/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ struct spi_master {
struct spi_message *mesg);

/* called on release() to free memory provided by spi_master */
void (*cleanup)(const struct spi_device *spi);
void (*cleanup)(struct spi_device *spi);
};

static inline void *spi_master_get_devdata(struct spi_master *master)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/spi/spi_bitbang.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct spi_bitbang {
* methods, if you like.
*/
extern int spi_bitbang_setup(struct spi_device *spi);
extern void spi_bitbang_cleanup(const struct spi_device *spi);
extern void spi_bitbang_cleanup(struct spi_device *spi);
extern int spi_bitbang_transfer(struct spi_device *spi, struct spi_message *m);
extern int spi_bitbang_setup_transfer(struct spi_device *spi,
struct spi_transfer *t);
Expand Down

0 comments on commit 4c5bf31

Please sign in to comment.