[ARM] 5072/1: corgi_pm: don't register devices on non-corgi machines
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
7c5926d4e8
commit
043fbc099a
1 changed files with 4 additions and 0 deletions
|
@ -229,6 +229,10 @@ static int __devinit corgipm_init(void)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (!machine_is_corgi() && !machine_is_shepherd()
|
||||
&& !machine_is_husky())
|
||||
return -ENODEV;
|
||||
|
||||
corgipm_device = platform_device_alloc("sharpsl-pm", -1);
|
||||
if (!corgipm_device)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue