summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4u/lw8
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4u/lw8')
-rw-r--r--usr/src/uts/sun4u/lw8/io/lw8.c4
-rw-r--r--usr/src/uts/sun4u/lw8/io/ntwdt.c8
-rw-r--r--usr/src/uts/sun4u/lw8/io/sgenv.c12
-rw-r--r--usr/src/uts/sun4u/lw8/io/sgfru.c4
4 files changed, 14 insertions, 14 deletions
diff --git a/usr/src/uts/sun4u/lw8/io/lw8.c b/usr/src/uts/sun4u/lw8/io/lw8.c
index 37703042cb..7daf8a2df3 100644
--- a/usr/src/uts/sun4u/lw8/io/lw8.c
+++ b/usr/src/uts/sun4u/lw8/io/lw8.c
@@ -163,7 +163,7 @@ static struct modlinkage modlinkage = {
struct led_info {
char id[MAX_ID_LEN];
int position;
- int status;
+ int status;
char color[MAX_COLOR_LEN];
};
@@ -367,7 +367,7 @@ lw8_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
return (DDI_FAILURE);
err = ddi_create_minor_node(dip, "lw8", S_IFCHR,
- instance, DDI_PSEUDO, NULL);
+ instance, DDI_PSEUDO, 0);
if (err != DDI_SUCCESS)
return (DDI_FAILURE);
diff --git a/usr/src/uts/sun4u/lw8/io/ntwdt.c b/usr/src/uts/sun4u/lw8/io/ntwdt.c
index d399486f8d..c2ae0575c9 100644
--- a/usr/src/uts/sun4u/lw8/io/ntwdt.c
+++ b/usr/src/uts/sun4u/lw8/io/ntwdt.c
@@ -484,7 +484,7 @@ static struct dev_ops ntwdt_ops = {
};
static struct modldrv modldrv = {
- &mod_driverops, /* This one is a driver */
+ &mod_driverops, /* This one is a driver */
"ntwdt-Netra-T12", /* Name of the module. */
&ntwdt_ops, /* Driver ops */
};
@@ -675,7 +675,7 @@ ntwdt_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
* is initialized.
*/
if (ddi_create_minor_node(dip, NTWDT_MINOR_NODE, S_IFCHR, 0,
- DDI_PSEUDO, NULL) == DDI_FAILURE) {
+ DDI_PSEUDO, 0) == DDI_FAILURE) {
cmn_err(CE_WARN, "failed to create Minor Node: %s",
NTWDT_MINOR_NODE);
goto err4;
@@ -1791,8 +1791,8 @@ ntwdt_set_awdt_state(ntwdt_wdog_t *rstatep)
static int
ntwdt_set_cfgvar(int var, int val)
{
- int rv;
- int mbox_val;
+ int rv;
+ int mbox_val;
lw8_set_wdt_t set_wdt;
switch (var) {
diff --git a/usr/src/uts/sun4u/lw8/io/sgenv.c b/usr/src/uts/sun4u/lw8/io/sgenv.c
index 7b5971bf57..a9e1de2e43 100644
--- a/usr/src/uts/sun4u/lw8/io/sgenv.c
+++ b/usr/src/uts/sun4u/lw8/io/sgenv.c
@@ -257,8 +257,8 @@ static boolean_t env_cache_update_needed = B_TRUE;
* board_cache won't change between the kstat_update and the kstat_snapshot
* which will cause problems as the update sets the ks_data_size.
*/
-static sg_board_info_t board_cache[SG_MAX_BDS] = {NULL};
-static sg_board_info_t board_cache_snapshot[SG_MAX_BDS] = {NULL};
+static sg_board_info_t board_cache[SG_MAX_BDS] = { 0 };
+static sg_board_info_t board_cache_snapshot[SG_MAX_BDS] = { 0 };
static int board_cache_updated = FALSE;
/*
@@ -546,7 +546,7 @@ sgenv_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
}
err = ddi_create_minor_node(dip, SGENV_DRV_NAME, S_IFCHR,
- instance, DDI_PSEUDO, NULL);
+ instance, DDI_PSEUDO, 0);
if (err != DDI_SUCCESS) {
sgenv_remove_kstats(softsp);
(void) sgenv_remove_cache_update_threads();
@@ -644,7 +644,7 @@ sgenv_add_kstats(sgenv_soft_state_t *softsp)
* Create the 'keyswitch position' named kstat.
*/
ksp = kstat_create(SGENV_DRV_NAME, inst, SG_KEYSWITCH_KSTAT_NAME,
- "misc", KSTAT_TYPE_NAMED, 1, NULL);
+ "misc", KSTAT_TYPE_NAMED, 1, 0);
if (ksp != NULL) {
/* initialize the named kstat */
@@ -1451,7 +1451,7 @@ sgenv_board_info_kstat_snapshot(kstat_t *ksp, void *buf, int rw)
* This function coordinates reading the env data from the SC.
*
* ERROR:
- * If an error occurs while making a call to the mailbox and we have data
+ * If an error occurs while making a call to the mailbox and we have data
* in the cache from a previous call to the SC, we return an error of 0.
* That way the kstat framework will return the old data instead of
* returning an error and an empty kstat.
@@ -2106,7 +2106,7 @@ sgenv_get_env_data(envresp_key_t key, int key_posn, uint16_t flag, int *status)
*/
static int
sgenv_handle_env_data_error(int err, int status, int key_posn,
- envresp_key_t key, char *str)
+ envresp_key_t key, char *str)
{
int rv = DDI_SUCCESS;
diff --git a/usr/src/uts/sun4u/lw8/io/sgfru.c b/usr/src/uts/sun4u/lw8/io/sgfru.c
index 431d9bfda7..c3b4a8ad28 100644
--- a/usr/src/uts/sun4u/lw8/io/sgfru.c
+++ b/usr/src/uts/sun4u/lw8/io/sgfru.c
@@ -186,7 +186,7 @@ sgfru_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
softsp->instance = instance;
error = ddi_create_minor_node(dip, SGFRU_DRV_NAME, S_IFCHR,
- instance, DDI_PSEUDO, NULL);
+ instance, DDI_PSEUDO, 0);
if (error == DDI_FAILURE) {
ddi_soft_state_free(sgfru_statep, instance);
return (DDI_FAILURE);
@@ -1525,7 +1525,7 @@ sgfru_copyin_append(const sgfru_init_arg_t *argp, append_info_t *app)
*/
static int
sgfru_copyin_buffer(const sgfru_init_arg_t *argp, const caddr_t data,
- const int cnt, char *buffer)
+ const int cnt, char *buffer)
{
static fn_t f = "sgfru_copyin_buffer";