summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlessandro Rubini2009-05-20 23:39:08 +0200
committerRussell King2009-05-21 00:26:51 +0200
commit03fbdb15c14e9746c63168e3ff2c64b9c8336d33 (patch)
tree819b4986a4f274c3402b74ccf0c7c815647daf3d /include
parent[ARM] 5517/1: integrator: don't put clock lookups in __initdata (diff)
downloadkernel-qcow2-linux-03fbdb15c14e9746c63168e3ff2c64b9c8336d33.tar.gz
kernel-qcow2-linux-03fbdb15c14e9746c63168e3ff2c64b9c8336d33.tar.xz
kernel-qcow2-linux-03fbdb15c14e9746c63168e3ff2c64b9c8336d33.zip
[ARM] 5519/1: amba probe: pass "struct amba_id *" instead of void *
The second argument of the probe method points to the amba_id structure, so it's better passed with the correct type. None of the current in-tree drivers uses the pointer, so they have only been checked for a clean compile. Change suggested by Russell King. Signed-off-by: Alessandro Rubini <rubini@unipv.it> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/amba/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h
index 51e6e54b2aa1..9b93cafa82a0 100644
--- a/include/linux/amba/bus.h
+++ b/include/linux/amba/bus.h
@@ -28,7 +28,7 @@ struct amba_id {
struct amba_driver {
struct device_driver drv;
- int (*probe)(struct amba_device *, void *);
+ int (*probe)(struct amba_device *, struct amba_id *);
int (*remove)(struct amba_device *);
void (*shutdown)(struct amba_device *);
int (*suspend)(struct amba_device *, pm_message_t);