device: Fix DEVICE_DECLARE macro to be usable inside drivers source code.
device: Fix DEVICE_DECLARE macro to be usable inside drivers source code.

Fix an issue where declaring a device in order to use DEVICE_GET macro
resulted in error: 'static declaration follows non-static declaration'.

Change-Id: I3e851e4d34e905601672e60ded50ed888c4d2a3c
Signed-off-by: Michał Kruszewski <4072dd8cb1cd1cf07454a4f927f7a512901f60c4@protonmail.com>

mbolivar/zephyr,holtmann/zephyr,rsalveti/zephyr,explora26/zephyr,erwango/zephyr,ldts/zephyr,pklazy/zephyr,zephyriot/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,holtmann/zephyr,aceofall/zephyr-iotos,nashif/zephyr,kraj/zephyr,bboozzoo/zephyr,punitvara/zephyr,Vudentz/zephyr,erwango/zephyr,finikorg/zephyr,finikorg/zephyr,zephyriot/zephyr,sharronliu/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,zephyrproject-rtos/zephyr,bboozzoo/zephyr,fbsder/zephyr,holtmann/zephyr,mbolivar/zephyr,mbolivar/zephyr,kraj/zephyr,galak/zephyr,zephyriot/zephyr,kraj/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3220,sharronliu/zephyr,fbsder/zephyr,runchip/zephyr-cc3200,holtmann/zephyr,explora26/zephyr,kraj/zephyr,fractalclone/zephyr-riscv,zephyrproject-rtos/zephyr,fbsder/zephyr,GiulianoFranchetto/zephyr,bboozzoo/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3200,ldts/zephyr,galak/zephyr,fractalclone/zephyr-riscv,finikorg/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,explora26/zephyr,pklazy/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,aceofall/zephyr-iotos,kraj/zephyr,galak/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,bigdinotech/zephyr,rsalveti/zephyr,rsalveti/zephyr,mbolivar/zephyr,Vudentz/zephyr,nashif/zephyr,finikorg/zephyr,erwango/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,explora26/zephyr,bigdinotech/zephyr,erwango/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,finikorg/zephyr,erwango/zephyr,pklazy/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,ldts/zephyr,sharronliu/zephyr,runchip/zephyr-cc3200,runchip/zephyr-cc3220,bboozzoo/zephyr,punitvara/zephyr,bboozzoo/zephyr,explora26/zephyr,pklazy/zephyr,rsalveti/zephyr,galak/zephyr,mbolivar/zephyr,holtmann/zephyr,zephyrproject-rtos/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,fractalclone/zephyr-riscv,punitvara/zephyr,punitvara/zephyr,punitvara/zephyr,runchip/zephyr-cc3200,rsalveti/zephyr,nashif/zephyr,bigdinotech/zephyr,nashif/zephyr,sharronliu/zephyr,fbsder/zephyr,sharronliu/zephyr