]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
spi/omap: Remove bus_num usage for instance index
authorBenoit Cousson <b-cousson@ti.com>
Mon, 26 Mar 2012 10:02:33 +0000 (15:32 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 10 Apr 2012 20:10:35 +0000 (14:10 -0600)
commit1bd897f84964c2ce3a28d11f7eb7c4e0a8d3ca3c
treeed96f4986d79d35d5f04c54ea0f494139f424288
parentaae730dfe239f1a5122ba873b54dffc20a516775
spi/omap: Remove bus_num usage for instance index

bus_num was used to reference the mcspi controller instance in a fixed array.
Remove this array and store this information directly inside drvdata structure.

bus_num is now just set if the pdev->id is present or with -1 for dynamic
allocation by SPI core, but the driver does not access it anymore.

Clean some bad comments format, and remove un-needed space.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
[Cleanup the OMAP2_MCSPI_MAX_CTRL macro as it is not needed anymore]
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
drivers/spi/spi-omap2-mcspi.c