Skip to content

Commit

Permalink
[ARM] 5458/1: pcmcia: pxa2xx-sharpsl: check if we do have Scoop config
Browse files Browse the repository at this point in the history
Check if we really have Scoop config, otherwice we can get a nice Oops
during probe.

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
lumag authored and Russell King committed Apr 23, 2009
1 parent 64bd43a commit ae1036a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pcmcia/pxa2xx_sharpsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ static int __init sharpsl_pcmcia_init(void)
{
int ret;

if (!platform_scoop_config)
return -ENODEV;

sharpsl_pcmcia_ops.nr = platform_scoop_config->num_devs;
sharpsl_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1);

Expand Down

0 comments on commit ae1036a

Please sign in to comment.