wimax/i2400m: make i2400m->bus_dev_{stop,start}() optional
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 8 Oct 2009 03:33:50 +0000 (12:33 +0900)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:23 +0000 (15:56 +0900)
commit097acbeff98178e01c2f6adb2259ab4d811340cc
tree72546c92d9438b1cad4dd7b37a3298a0763ff9fa
parent4a78fd9a736db4c871bc8b583d66b61c38abd299
wimax/i2400m: make i2400m->bus_dev_{stop,start}() optional

In coming commits, the i2400m SDIO driver will not use
i2400m->bus_dev_stop().

Thus changed to check before calling, as an empty stub has more
overhead than a call to check if the function pointer is non-NULL.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/driver.c
drivers/net/wimax/i2400m/i2400m.h