From 337b600f898583b50b67e0bbff0667db2393d614 Mon Sep 17 00:00:00 2001 From: Sekhar Nori Date: Fri, 6 Jun 2014 14:36:04 -0700 Subject: [PATCH] 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 Cc: Alessandro Zummo Cc: Lokesh Vutla Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed