I'm not totally sure, but IIRC the dependency list was the one of spi.c, no?
I've had problems just including spi.h and trigger.h, actually.
Cheers,Brook