[PATCH v4 4/9] spi: Add API to count spi acpi resources