---
name: "module_spi_driver"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/module_spi_driver"
---

# module\_spi\_driver(9)

Helper macro for registering a SPI driver

## NAME

module\_spi\_driver - Helper macro for registering a SPI driver

## SYNOPSIS

**module\_spi\_driver(***\_\_spi\_driver***);**

## ARGUMENTS

*\_\_spi\_driver*

spi\_driver struct

## DESCRIPTION

Helper macro for SPI drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces **module\_init** and **module\_exit**

## COPYRIGHT
