aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-06-21 15:27:29 -0400
committerKyle McMartin <kyle@hera.kernel.org>2006-06-27 19:28:42 -0400
commitec1fdc24c2ae012b078ba0187ceef208e08a3aec (patch)
treee615b4d1fe299ff835d9c21d6ae93214d22d67b3 /drivers/parisc
parenta9d2d386c42b816a81eb1d02dfb7b502ba8cea82 (diff)
[PARISC] OS_ID_LINUX == 0x0006
We were assigned an OS_ID of 0x0006. Consistently use OS_ID_LINUX instead of using the magic number. Also update the OS_ID_ defines in asm/pdc.h to reflect this. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'drivers/parisc')
-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;