Hi Sonny,
On Mon, 7 Jul 2008 21:58:12 -0500 Sonny Rao <[EMAIL PROTECTED]> wrote:
>
> +static int bsr_create_devs(struct device_node *bn)
> +{
> + cur->bsr_device = device_create(bsr_class, NULL,
> + cur->bsr_dev,
> + cur->bsr_name);
> + if (!cur->bsr_device) {
> + printk(KERN_ERR "device_create failed for %s\n",
> + cur->bsr_name);
> + cdev_del(&cur->bsr_cdev);
> + goto out_err;
> + }
> + dev_set_drvdata(cur->bsr_device, cur);
device_create() is being removed in 2.6.27 because the above introduces a
race, use device_create_drvdata() instead.
--
Cheers,
Stephen Rothwell [EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/
pgpNbdOMPmwDZ.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-dev
