remove invalid flag-check

PROBE_DETECT is only valid for the Probe-callback. In fact, checking
for it is harmful; if new flags are introduced that alias with this,
we might behave incorrectly.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Define our own TEGRA_ARRAY_SIZE

It seems ARRAY_SIZE isn't reliably available, so let's define our
own and use that one instead.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
make sure compat-api is included

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>