Only call pn53x_init() from the drivers initialization functions.

This commit is contained in:
Romain Tartiere 2011-03-04 11:23:20 +00:00
parent b1521a3bb1
commit 4d65868208

View file

@ -109,10 +109,6 @@ nfc_connect (nfc_device_desc_t * pndd)
if (pnd != NULL) { if (pnd != NULL) {
DBG ("[%s] has been claimed.", pnd->acName); DBG ("[%s] has been claimed.", pnd->acName);
// TODO: Put this pn53x related in driver_init()
if (!pn53x_init (pnd))
return NULL;
// Set default configuration options // Set default configuration options
// Make sure we reset the CRC and parity to chip handling. // Make sure we reset the CRC and parity to chip handling.
if (!nfc_configure (pnd, NDO_HANDLE_CRC, true)) if (!nfc_configure (pnd, NDO_HANDLE_CRC, true))