soc: nrf: clean up inclusions and style fixes

Remove redundant inclusion of nrf.h (included by nrfx.h).
Group the logging/log.h inclusion together with the other
inclusions in this file (make inclusions' list look as in
nrf9160/soc.c).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-01-18 15:53:06 +01:00 committed by Anas Nashif
parent bc5b8e24fe
commit 704e4b446b
2 changed files with 2 additions and 3 deletions

View file

@ -17,6 +17,7 @@
#include <init.h>
#include <nrfx.h>
#include <soc/nrfx_coredep.h>
#include <logging/log.h>
#ifdef CONFIG_RUNTIME_NMI
extern void _NmiInit(void);
@ -27,7 +28,6 @@ extern void _NmiInit(void);
#include <system_nrf51.h>
#define LOG_LEVEL CONFIG_SOC_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(soc);
static int nordicsemi_nrf51_init(struct device *arg)

View file

@ -17,6 +17,7 @@
#include <cortex_m/exc.h>
#include <nrfx.h>
#include <soc/nrfx_coredep.h>
#include <logging/log.h>
#ifdef CONFIG_RUNTIME_NMI
extern void _NmiInit(void);
@ -35,11 +36,9 @@ extern void _NmiInit(void);
#error "Unknown SoC."
#endif
#include <nrf.h>
#include <hal/nrf_power.h>
#define LOG_LEVEL CONFIG_SOC_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_REGISTER(soc);
static int nordicsemi_nrf52_init(struct device *arg)