From: George Kashperko <george@xxxxxxxxxxx> Introduce iounmap helper for transparent resource releasing by bus implementation-specific management code. Signed-off-by: George Kashperko <george@xxxxxxxxxxx> --- drivers/ssb/scan.c | 2 +- drivers/ssb/ssb_private.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) --- linux-wireless-testing.orig/drivers/ssb/scan.c 2011-02-17 14:45:04.000000000 +0200 +++ linux-wireless-testing/drivers/ssb/scan.c 2011-02-17 14:45:31.000000000 +0200 @@ -199,7 +199,7 @@ static int scan_switchcore(struct ssb_bu return 0; } -void ssb_iounmap(struct ssb_bus *bus) +void ssb_iounmap_sb(struct ssb_bus *bus) { switch (bus->bustype) { case SSB_BUSTYPE_SSB: --- linux-wireless-testing.orig/drivers/ssb/ssb_private.h 2011-02-17 14:34:02.000000000 +0200 +++ linux-wireless-testing/drivers/ssb/ssb_private.h 2011-02-17 14:45:31.000000000 +0200 @@ -159,9 +159,13 @@ static inline int ssb_sdio_init(struct s extern const char *ssb_core_name(u16 coreid); extern int ssb_bus_scan(struct ssb_bus *bus, unsigned long baseaddr); -extern void ssb_iounmap(struct ssb_bus *ssb); +extern void ssb_iounmap_sb(struct ssb_bus *bus); extern int ssb_bus_check_core(struct ssb_device *dev, int *nr_80211_cores, int corenum); +static inline void ssb_iounmap(struct ssb_bus *bus) +{ + ssb_iounmap_sb(bus); +} /* sprom.c */ -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html