spi.c (b22364c8eec89e6b0c081a237f3b6348df87796f) | spi.c (0ffa0285052607513a29f529ddb5061c907fd8a6) |
---|---|
1/* 2 * spi.c - SPI init/core code 3 * 4 * Copyright (C) 2005 David Brownell 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 18 unchanged lines hidden (view full) --- 27 28 29/* SPI bustype and spi_master class are registered after board init code 30 * provides the SPI device tables, ensuring that both are present by the 31 * time controller driver registration causes spi_devices to "enumerate". 32 */ 33static void spidev_release(struct device *dev) 34{ | 1/* 2 * spi.c - SPI init/core code 3 * 4 * Copyright (C) 2005 David Brownell 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 18 unchanged lines hidden (view full) --- 27 28 29/* SPI bustype and spi_master class are registered after board init code 30 * provides the SPI device tables, ensuring that both are present by the 31 * time controller driver registration causes spi_devices to "enumerate". 32 */ 33static void spidev_release(struct device *dev) 34{ |
35 const struct spi_device *spi = to_spi_device(dev); | 35 struct spi_device *spi = to_spi_device(dev); |
36 37 /* spi masters may cleanup for released devices */ 38 if (spi->master->cleanup) 39 spi->master->cleanup(spi); 40 41 spi_master_put(spi->master); 42 kfree(dev); 43} --- 605 unchanged lines hidden --- | 36 37 /* spi masters may cleanup for released devices */ 38 if (spi->master->cleanup) 39 spi->master->cleanup(spi); 40 41 spi_master_put(spi->master); 42 kfree(dev); 43} --- 605 unchanged lines hidden --- |