mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mfd: Register ab8500 devices using the newly DT:ed MFD API
Now the MFD API is Device Tree aware we can use it for platform registration again, even when booting with DT enabled. To aid in Device Node pointer allocation we provide each cell with the associative compatible string. Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
2968ab133e
commit
bad76991d7
7 changed files with 39 additions and 56 deletions
|
|
@ -142,16 +142,10 @@ static int __devexit ab8500_pwm_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id ab8500_pwm_match[] = {
|
||||
{ .compatible = "stericsson,ab8500-pwm", },
|
||||
{}
|
||||
};
|
||||
|
||||
static struct platform_driver ab8500_pwm_driver = {
|
||||
.driver = {
|
||||
.name = "ab8500-pwm",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ab8500_pwm_match,
|
||||
},
|
||||
.probe = ab8500_pwm_probe,
|
||||
.remove = __devexit_p(ab8500_pwm_remove),
|
||||
|
|
|
|||
Loading…
Reference in a new issue