pci: simplify the init
explicit pointer cast to avoid warnings

not really sure if it's actually correct.