git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
drivers
/
macintosh
/
via-pmu.c
diff --git
a/drivers/macintosh/via-pmu.c
b/drivers/macintosh/via-pmu.c
index
27e14a7
..
b983167
100644
(file)
--- a/
drivers/macintosh/via-pmu.c
+++ b/
drivers/macintosh/via-pmu.c
@@
-492,7
+492,7
@@
static int __init via_pmu_dev_init(void)
}
#endif /* CONFIG_PMAC_PBOOK */
/* Create /proc/pmu */
}
#endif /* CONFIG_PMAC_PBOOK */
/* Create /proc/pmu */
- proc_pmu_root = proc_mkdir("pmu",
NULL
);
+ proc_pmu_root = proc_mkdir("pmu",
0
);
if (proc_pmu_root) {
int i;
proc_pmu_info = create_proc_read_entry("info", 0, proc_pmu_root,
if (proc_pmu_root) {
int i;
proc_pmu_info = create_proc_read_entry("info", 0, proc_pmu_root,
@@
-549,7
+549,7
@@
init_pmu(void)
}
if (pmu_state == idle)
adb_int_pending = 1;
}
if (pmu_state == idle)
adb_int_pending = 1;
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
udelay(10);
}
udelay(10);
}
@@
-1122,7
+1122,7
@@
pmu_queue_request(struct adb_request *req)
return -EINVAL;
}
return -EINVAL;
}
- req->next =
NULL
;
+ req->next =
0
;
req->sent = 0;
req->complete = 0;
req->sent = 0;
req->complete = 0;
@@
-1225,7
+1225,7
@@
pmu_poll(void)
return;
if (disable_poll)
return;
return;
if (disable_poll)
return;
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
}
void __openfirmware
}
void __openfirmware
@@
-1238,7
+1238,7
@@
pmu_poll_adb(void)
/* Kicks ADB read when PMU is suspended */
adb_int_pending = 1;
do {
/* Kicks ADB read when PMU is suspended */
adb_int_pending = 1;
do {
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
} while (pmu_suspended && (adb_int_pending || pmu_state != idle
|| req_awaiting_reply));
}
} while (pmu_suspended && (adb_int_pending || pmu_state != idle
|| req_awaiting_reply));
}
@@
-1249,7
+1249,7
@@
pmu_wait_complete(struct adb_request *req)
if (!via)
return;
while((pmu_state != idle && pmu_state != locked) || !req->complete)
if (!via)
return;
while((pmu_state != idle && pmu_state != locked) || !req->complete)
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
}
/* This function loops until the PMU is idle and prevents it from
}
/* This function loops until the PMU is idle and prevents it from
@@
-1278,7
+1278,7
@@
pmu_suspend(void)
spin_unlock_irqrestore(&pmu_lock, flags);
if (req_awaiting_reply)
adb_int_pending = 1;
spin_unlock_irqrestore(&pmu_lock, flags);
if (req_awaiting_reply)
adb_int_pending = 1;
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
spin_lock_irqsave(&pmu_lock, flags);
if (!adb_int_pending && pmu_state == idle && !req_awaiting_reply) {
#ifdef SUSPEND_USES_PMU
spin_lock_irqsave(&pmu_lock, flags);
if (!adb_int_pending && pmu_state == idle && !req_awaiting_reply) {
#ifdef SUSPEND_USES_PMU
@@
-1377,7
+1377,7
@@
next:
printk(KERN_ERR "PMU: extra ADB reply\n");
return;
}
printk(KERN_ERR "PMU: extra ADB reply\n");
return;
}
- req_awaiting_reply =
NULL
;
+ req_awaiting_reply =
0
;
if (len <= 2)
req->reply_len = 0;
else {
if (len <= 2)
req->reply_len = 0;
else {
@@
-1662,7
+1662,7
@@
gpio1_interrupt(int irq, void *arg, struct pt_regs *regs)
pmu_irq_stats[1]++;
adb_int_pending = 1;
spin_unlock_irqrestore(&pmu_lock, flags);
pmu_irq_stats[1]++;
adb_int_pending = 1;
spin_unlock_irqrestore(&pmu_lock, flags);
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
return IRQ_HANDLED;
}
return IRQ_NONE;
return IRQ_HANDLED;
}
return IRQ_NONE;
@@
-2071,7
+2071,7
@@
pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* n)
if (n->list.next == 0)
return -ENOENT;
list_del(&n->list);
if (n->list.next == 0)
return -ENOENT;
list_del(&n->list);
- n->list.next =
NULL
;
+ n->list.next =
0
;
return 0;
}
return 0;
}
@@
-2406,7
+2406,7
@@
pmac_wakeup_devices(void)
/* Force a poll of ADB interrupts */
adb_int_pending = 1;
/* Force a poll of ADB interrupts */
adb_int_pending = 1;
- via_pmu_interrupt(0,
NULL, NULL
);
+ via_pmu_interrupt(0,
0, 0
);
/* Restart jiffies & scheduling */
wakeup_decrementer();
/* Restart jiffies & scheduling */
wakeup_decrementer();
@@
-2857,7
+2857,7
@@
pmu_release(struct inode *inode, struct file *file)
lock_kernel();
if (pp != 0) {
lock_kernel();
if (pp != 0) {
- file->private_data =
NULL
;
+ file->private_data =
0
;
spin_lock_irqsave(&all_pvt_lock, flags);
list_del(&pp->list);
spin_unlock_irqrestore(&all_pvt_lock, flags);
spin_lock_irqsave(&all_pvt_lock, flags);
list_del(&pp->list);
spin_unlock_irqrestore(&all_pvt_lock, flags);
@@
-2880,7
+2880,6
@@
pmu_ioctl(struct inode * inode, struct file *filp,
u_int cmd, u_long arg)
{
struct pmu_private *pp = filp->private_data;
u_int cmd, u_long arg)
{
struct pmu_private *pp = filp->private_data;
- __u32 __user *argp = (__u32 __user *)arg;
int error;
switch (cmd) {
int error;
switch (cmd) {
@@
-2907,7
+2906,7
@@
pmu_ioctl(struct inode * inode, struct file *filp,
sleep_in_progress = 0;
return error;
case PMU_IOC_CAN_SLEEP:
sleep_in_progress = 0;
return error;
case PMU_IOC_CAN_SLEEP:
- return put_user((u32)can_sleep,
argp
);
+ return put_user((u32)can_sleep,
(__u32 *)arg
);
#ifdef CONFIG_PMAC_BACKLIGHT
/* Backlight should have its own device or go via
#ifdef CONFIG_PMAC_BACKLIGHT
/* Backlight should have its own device or go via
@@
-2919,13
+2918,13
@@
pmu_ioctl(struct inode * inode, struct file *filp,
error = get_backlight_level();
if (error < 0)
return error;
error = get_backlight_level();
if (error < 0)
return error;
- return put_user(error,
argp
);
+ return put_user(error,
(__u32 *)arg
);
case PMU_IOC_SET_BACKLIGHT:
{
__u32 value;
if (sleep_in_progress)
return -EBUSY;
case PMU_IOC_SET_BACKLIGHT:
{
__u32 value;
if (sleep_in_progress)
return -EBUSY;
- error = get_user(value,
argp
);
+ error = get_user(value,
(__u32 *)arg
);
if (!error)
error = set_backlight_level(value);
return error;
if (!error)
error = set_backlight_level(value);
return error;
@@
-2944,9
+2943,9
@@
pmu_ioctl(struct inode * inode, struct file *filp,
#endif /* CONFIG_INPUT_ADBHID */
#endif /* CONFIG_PMAC_BACKLIGHT */
case PMU_IOC_GET_MODEL:
#endif /* CONFIG_INPUT_ADBHID */
#endif /* CONFIG_PMAC_BACKLIGHT */
case PMU_IOC_GET_MODEL:
- return put_user(pmu_kind,
argp
);
+ return put_user(pmu_kind,
(__u32 *)arg
);
case PMU_IOC_HAS_ADB:
case PMU_IOC_HAS_ADB:
- return put_user(pmu_has_adb,
argp
);
+ return put_user(pmu_has_adb,
(__u32 *)arg
);
}
return -EINVAL;
}
}
return -EINVAL;
}