mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ODROID-N2: spi/spidev: comaptible name added (linux,spidev)
Change-Id: I1559c4f3c8425f469147fe54134d5fab2fd3e33c
This commit is contained in:
committed by
Dongjin Kim
parent
895b49d2e8
commit
8368a04326
@@ -696,6 +696,9 @@ static struct class *spidev_class;
|
||||
static const struct of_device_id spidev_dt_ids[] = {
|
||||
{ .compatible = "rohm,dh2228fv" },
|
||||
{ .compatible = "lineartechnology,ltc2488" },
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
{ .compatible = "linux,spidev" },
|
||||
#endif
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
|
||||
@@ -813,6 +816,12 @@ static int spidev_remove(struct spi_device *spi)
|
||||
spidev->spi = NULL;
|
||||
spin_unlock_irq(&spidev->spi_lock);
|
||||
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
/* gpio free for spidev */
|
||||
if(spi->master->cleanup)
|
||||
spi->master->cleanup(spi);
|
||||
#endif
|
||||
|
||||
/* prevent new opens */
|
||||
mutex_lock(&device_list_lock);
|
||||
list_del(&spidev->device_entry);
|
||||
|
||||
Reference in New Issue
Block a user