Blackfin: gpio: optimize free path a little
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 May 2011 16:56:58 +0000 (12:56 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jul 2011 06:17:45 +0000 (02:17 -0400)
commit95b4b9d97a5bb6a93ec269cb9cf85e95a8f8295d
tree8717427f06e5ac86318f687936c91668187ba5cc
parent272d2fc2f5184740e5890e9afeb9fd78d308e51a
Blackfin: gpio: optimize free path a little

When we aren't doing resource tracking, the gpio_free() function is a
stub that simply returns, so pull this logic up a level and make it an
inline stub in the header.  Now we don't have to waste time at any of
the call sites.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/cpu/gpio.c
arch/blackfin/include/asm/gpio.h