tsif: tsif1 initialization bug fix

When using CONFIG_MSM_USE_TSIF1 to enable the second tsif instance,
the device initialization failed because of a errant device ID. The
check has been updated to accept the correct device ID range (0..1)

Signed-off-by: Joel Nider <jnider@codeaurora.org>
This commit is contained in:
Joel Nider
2011-08-12 09:37:11 +03:00
committed by Bryan Huntsman
parent d783499ad3
commit 5578bdb65d
3 changed files with 29 additions and 4 deletions

View File

@@ -104,6 +104,13 @@ enum tsif_state {
tsif_state_error = 3,
};
/**
* tsif_get_active - return active tsif hardware instance
*
* Return TSIF instance to use (selected by CONFIG_MSM_USE_TSIF1)
*/
int tsif_get_active(void);
/**
* tsif_attach - Attach to the device.
* @id: TSIF device ID, used to identify TSIF instance.