mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-02 22:43:47 +07:00
[ARM] 5458/1: pcmcia: pxa2xx-sharpsl: check if we do have Scoop config
Check if we really have Scoop config, otherwice we can get a nice Oops during probe. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
64bd43a086
commit
ae1036a2f4
@ -255,6 +255,9 @@ static int __init sharpsl_pcmcia_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!platform_scoop_config)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
sharpsl_pcmcia_ops.nr = platform_scoop_config->num_devs;
|
sharpsl_pcmcia_ops.nr = platform_scoop_config->num_devs;
|
||||||
sharpsl_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
sharpsl_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user