mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
pcmcia: limit pxa2xx_trizeps4 subdriver to trizeps4 platform
pxa2xx_trizeps4 tries to register pxa2xx-pcmcia device not checking whether machine is really trizeps4, thus messing multi-machine kernels. Fix it up. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
parent
af21cbb1ef
commit
735443fede
@ -226,6 +226,9 @@ static int __init trizeps_pcmcia_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!machine_is_trizeps4() && !machine_is_trizeps4wl())
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
trizeps_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
trizeps_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
||||||
if (!trizeps_pcmcia_device)
|
if (!trizeps_pcmcia_device)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user