Re: [PATCH] spi: Add builtin_spi_driver() to avoid registration boilerplate

From: Mark Brown
Date: Wed Dec 16 2015 - 08:24:10 EST


On Sun, Dec 13, 2015 at 03:53:57PM -0500, Paul Gortmaker wrote:

> Here we use that support and extend it to SPI driver registration, so where
> a driver is clearly non-modular and builtin-only, we can register it in a
> similar fashion. Existing code that is clearly non-modular can be updated
> with the simple mapping of

> module_spi_driver(...) ---> builtin_spi_driver(...)

> We've essentially cloned the former to make the latter, and taken out the
> remove/module_exit parts since those never get used in a non-modular build
> of the code.

Why would it be sensible to have a SPI driver that can't be built as a
module?

Attachment: signature.asc
Description: PGP signature