diff --git a/tests/driver_at86rf2xx/main.c b/tests/driver_at86rf2xx/main.c
index afb128f247734871ffdca1c8f65f4b6826f5fc82..e5d7e4c958d801948309f00347a8886946c80a86 100644
--- a/tests/driver_at86rf2xx/main.c
+++ b/tests/driver_at86rf2xx/main.c
@@ -95,7 +95,7 @@ int main(void)
         netdev_t *dev = (netdev_t *)(&devs[i]);
 
         printf("Initializing AT86RF2xx radio at SPI_%d\n", p->spi);
-        at86rf2xx_setup(&devs[i], (at86rf2xx_params_t*) p);
+        at86rf2xx_setup(&devs[i], p);
         dev->event_callback = _event_cb;
         dev->driver->init(dev);
     }