All pastes #813447 Raw Edit

Something

public text v1 · immutable
·published 2007-12-12 15:26 UTC
rendered paste body
+static int mmc_slot_init(struct device *dev,
+                irqreturn_t (*handler)(int, void *),
+                void *data)
+{
+        struct spi_device *spi = to_spi_device(dev);
+        return request_irq(spi->irq, handler,
+                          IRQF_TRIGGER_RISING
+                        | IRQF_TRIGGER_FALLING
+                        | IRQF_SAMPLE_RANDOM,
+                        spi->dev.bus_id, data);
+}
+
+static void mmc_slot_exit(struct device *dev, void *data)
+{
+        struct spi_device *spi = to_spi_device(dev);
+
+        free_irq(spi->irq, data);
+}