Commit ba1a0513 authored by dmitry pervushin's avatar dmitry pervushin Committed by Linus Torvalds

[PATCH] minor SPI doc fix

Because several developers asked me about referenced but missing
spi_add_master(), I think that this patch should be applied ...  it
corrects comments so they refer to spi_register_master() instead.
Signed-off-by: default avatardmitry pervushin <dpervushin@ru.mvista.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ae0718f8
...@@ -343,13 +343,13 @@ static struct class spi_master_class = { ...@@ -343,13 +343,13 @@ static struct class spi_master_class = {
* *
* This call is used only by SPI master controller drivers, which are the * This call is used only by SPI master controller drivers, which are the
* only ones directly touching chip registers. It's how they allocate * only ones directly touching chip registers. It's how they allocate
* an spi_master structure, prior to calling spi_add_master(). * an spi_master structure, prior to calling spi_register_master().
* *
* This must be called from context that can sleep. It returns the SPI * This must be called from context that can sleep. It returns the SPI
* master structure on success, else NULL. * master structure on success, else NULL.
* *
* The caller is responsible for assigning the bus number and initializing * The caller is responsible for assigning the bus number and initializing
* the master's methods before calling spi_add_master(); and (after errors * the master's methods before calling spi_register_master(); and (after errors
* adding the device) calling spi_master_put() to prevent a memory leak. * adding the device) calling spi_master_put() to prevent a memory leak.
*/ */
struct spi_master * __init_or_module struct spi_master * __init_or_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment