mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
a93ea9b357
commit
03fbdb15c1
9 changed files with 9 additions and 9 deletions
|
|
@ -102,7 +102,7 @@ static const struct rtc_class_ops pl030_ops = {
|
|||
.set_alarm = pl030_set_alarm,
|
||||
};
|
||||
|
||||
static int pl030_probe(struct amba_device *dev, void *id)
|
||||
static int pl030_probe(struct amba_device *dev, struct amba_id *id)
|
||||
{
|
||||
struct pl030_rtc *rtc;
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ static int pl031_remove(struct amba_device *adev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pl031_probe(struct amba_device *adev, void *id)
|
||||
static int pl031_probe(struct amba_device *adev, struct amba_id *id)
|
||||
{
|
||||
int ret;
|
||||
struct pl031_local *ldata;
|
||||
|
|
|
|||
Loading…
Reference in a new issue