]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-omap.c: remove multiple device id checks
authorSekhar Nori <nsekhar@ti.com>
Wed, 14 May 2014 00:02:42 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:42 +0000 (10:02 +1000)
commitc99992bb6a1056de187bebfd2c9955e636e159e4
tree242f6e25ac8918b34b742079e0c6b8e2fde6561d
parent92bc9a44b9b2e46b906286a6d520280f2fb4b9af
drivers/rtc/rtc-omap.c: remove multiple device id checks

Remove multiple superfluous device id checks.  Since an id_table is
present in the driver probe() should never encounter an empty device id
entry.  In case of OF style match, of_match_device() returns an matching
entry.

For paranoia sake, check for device id entry once and fail probe() if none
is found.  This is much better than checking for it multiple times.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-omap.c