aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/parisc/pdc_stable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c
index a1094210cd1f..97b345858043 100644
--- a/drivers/parisc/pdc_stable.c
+++ b/drivers/parisc/pdc_stable.c
@@ -884,7 +884,7 @@ pdcs_osdep1_write(struct subsystem *entry, const char *buf, size_t count)
884 if (!entry || !buf || !count) 884 if (!entry || !buf || !count)
885 return -EINVAL; 885 return -EINVAL;
886 886
887 if (unlikely(pdcs_osid != 0x0006)) 887 if (unlikely(pdcs_osid != OS_ID_LINUX))
888 return -EPERM; 888 return -EPERM;
889 889
890 if (count > 16) 890 if (count > 16)
@@ -926,7 +926,7 @@ pdcs_osdep2_write(struct subsystem *entry, const char *buf, size_t count)
926 if (unlikely(pdcs_size <= 224)) 926 if (unlikely(pdcs_size <= 224))
927 return -ENOSYS; 927 return -ENOSYS;
928 928
929 if (unlikely(pdcs_osid != 0x0006)) 929 if (unlikely(pdcs_osid != OS_ID_LINUX))
930 return -EPERM; 930 return -EPERM;
931 931
932 size = pdcs_size - 224; 932 size = pdcs_size - 224;