projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
[linux-drm-fsl-dcu.git]
/
arch
/
powerpc
/
platforms
/
pseries
/
rtasd.c
diff --git
a/arch/powerpc/platforms/pseries/rtasd.c
b/arch/powerpc/platforms/pseries/rtasd.c
index e0000ce769e51831db5df3fe82f25d57384c1e16..77d0937d5c07a334643f4e8518ad59ca7a854afd 100644
(file)
--- a/
arch/powerpc/platforms/pseries/rtasd.c
+++ b/
arch/powerpc/platforms/pseries/rtasd.c
@@
-331,7
+331,7
@@
static unsigned int rtas_log_poll(struct file *file, poll_table * wait)
return 0;
}
return 0;
}
-struct file_operations proc_rtas_log_operations = {
+
const
struct file_operations proc_rtas_log_operations = {
.read = rtas_log_read,
.poll = rtas_log_poll,
.open = rtas_log_open,
.read = rtas_log_read,
.poll = rtas_log_poll,
.open = rtas_log_open,
@@
-348,7
+348,7
@@
static int enable_surveillance(int timeout)
return 0;
if (error == -EINVAL) {
return 0;
if (error == -EINVAL) {
- printk(KERN_
INFO
"rtasd: surveillance not supported\n");
+ printk(KERN_
DEBUG
"rtasd: surveillance not supported\n");
return 0;
}
return 0;
}
@@
-359,11
+359,11
@@
static int enable_surveillance(int timeout)
static int get_eventscan_parms(void)
{
struct device_node *node;
static int get_eventscan_parms(void)
{
struct device_node *node;
- int *ip;
+
const
int *ip;
node = of_find_node_by_path("/rtas");
node = of_find_node_by_path("/rtas");
- ip =
(int *)
get_property(node, "rtas-event-scan-rate", NULL);
+ ip = get_property(node, "rtas-event-scan-rate", NULL);
if (ip == NULL) {
printk(KERN_ERR "rtasd: no rtas-event-scan-rate\n");
of_node_put(node);
if (ip == NULL) {
printk(KERN_ERR "rtasd: no rtas-event-scan-rate\n");
of_node_put(node);
@@
-440,7
+440,7
@@
static int rtasd(void *unused)
goto error;
}
goto error;
}
- printk(KERN_
INFO
"RTAS daemon started\n");
+ printk(KERN_
DEBUG
"RTAS daemon started\n");
DEBUG("will sleep for %d milliseconds\n", (30000/rtas_event_scan_rate));
DEBUG("will sleep for %d milliseconds\n", (30000/rtas_event_scan_rate));
@@
-487,7
+487,7
@@
static int __init rtas_init(void)
/* No RTAS */
if (rtas_token("event-scan") == RTAS_UNKNOWN_SERVICE) {
/* No RTAS */
if (rtas_token("event-scan") == RTAS_UNKNOWN_SERVICE) {
- printk(KERN_
INFO
"rtasd: no event-scan on system\n");
+ printk(KERN_
DEBUG
"rtasd: no event-scan on system\n");
return -ENODEV;
}
return -ENODEV;
}