rapidio: move rio_pw_enable into core code
Make rio_pw_enable() routine available to other RapidIO drivers. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
5024622f58
commit
b6cb95e8eb
@@ -973,17 +973,6 @@ static void rio_init_em(struct rio_dev *rdev)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* rio_pw_enable - Enables/disables port-write handling by a master port
|
||||
* @port: Master port associated with port-write handling
|
||||
* @enable: 1=enable, 0=disable
|
||||
*/
|
||||
static void rio_pw_enable(struct rio_mport *port, int enable)
|
||||
{
|
||||
if (port->ops->pwenable)
|
||||
port->ops->pwenable(port, enable);
|
||||
}
|
||||
|
||||
/**
|
||||
* rio_enum_mport- Start enumeration through a master port
|
||||
* @mport: Master port to send transactions
|
||||
|
Reference in New Issue
Block a user