fix warning
warning: ‘struct device’ declared inside parameter list

Signed-off-by: Stefanescu Cristian <howerkraft@gmail.com>