projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] knfsd: nfsd4: fix handling of directories without default ACLs
[powerpc.git]
/
drivers
/
macintosh
/
smu.c
diff --git
a/drivers/macintosh/smu.c
b/drivers/macintosh/smu.c
index
4f724cd
..
3096836
100644
(file)
--- a/
drivers/macintosh/smu.c
+++ b/
drivers/macintosh/smu.c
@@
-601,7
+601,7
@@
core_initcall(smu_late_init);
* sysfs visibility
*/
* sysfs visibility
*/
-static void smu_expose_childs(
void
*unused)
+static void smu_expose_childs(
struct work_struct
*unused)
{
struct device_node *np;
{
struct device_node *np;
@@
-611,7
+611,7
@@
static void smu_expose_childs(void *unused)
&smu->of_dev->dev);
}
&smu->of_dev->dev);
}
-static DECLARE_WORK(smu_expose_childs_work, smu_expose_childs
, NULL
);
+static DECLARE_WORK(smu_expose_childs_work, smu_expose_childs);
static int smu_platform_probe(struct of_device* dev,
const struct of_device_id *match)
static int smu_platform_probe(struct of_device* dev,
const struct of_device_id *match)
@@
-945,7
+945,7
@@
static struct smu_sdbp_header *smu_create_sdb_partition(int id)
*/
tlen = sizeof(struct property) + len + 18;
*/
tlen = sizeof(struct property) + len + 18;
- prop = k
calloc(tlen, 1
, GFP_KERNEL);
+ prop = k
zalloc(tlen
, GFP_KERNEL);
if (prop == NULL)
return NULL;
hdr = (struct smu_sdbp_header *)(prop + 1);
if (prop == NULL)
return NULL;
hdr = (struct smu_sdbp_header *)(prop + 1);
@@
-1277,7
+1277,7
@@
static int smu_release(struct inode *inode, struct file *file)
}
}
-static struct file_operations smu_device_fops = {
+static
const
struct file_operations smu_device_fops = {
.llseek = no_llseek,
.read = smu_read,
.write = smu_write,
.llseek = no_llseek,
.read = smu_read,
.write = smu_write,