]> git.karo-electronics.de Git - linux-beck.git/commit
spi: enable spi_board_info to be registered after spi_master
authorFeng Tang <feng.tang@intel.com>
Mon, 2 Aug 2010 07:52:15 +0000 (15:52 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 22 Oct 2010 05:52:16 +0000 (23:52 -0600)
commit2b9603a0d7e395fb844af90fba71448bc8019077
treeb828ff7c6819766e92dd304eb5e63e12527e516a
parentd4429f608abde89e8bc1e24b43cd503feb95c496
spi: enable spi_board_info to be registered after spi_master

Currently spi_register_board_info() has to be called before its related
spi_master be registered, otherwise these board info will be just ignored.

This patch will remove this order limit, it adds a global spi master list
like the existing global board info listr. Whenever a board info or a
spi_master is registered, the spi master list or board info list
will be scanned, and a new spi device will be created if there is a
master-board info match.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c
include/linux/spi/spi.h