lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47A07DCE.5010808@gmail.com>
Date:	Wed, 30 Jan 2008 14:38:22 +0100
From:	Jiri Slaby <jirislaby@...il.com>
To:	Mike Frysinger <vapier.adi@...il.com>
CC:	Bryan Wu <bryan.wu@...log.com>, linux-kernel@...r.kernel.org,
	Mike Frysinger <michael.frysinger@...log.com>
Subject: Re: [PATCH 1/1] [Blackfin] char driver for Blackfin on-chip OTP memory

On 01/30/2008 02:19 PM, Mike Frysinger wrote:
> On Jan 30, 2008 6:00 AM, Jiri Slaby <jirislaby@...il.com> wrote:
>> On 01/30/2008 11:36 AM, Bryan Wu wrote:
>>> +     ret = cdev_add(&bfin_otp_cdev, bfin_otp_dev_node, 1);
>>> +     if (ret) {
>>> +             unregister_chrdev_region(bfin_otp_dev_node, 1);
>>> +             printk(KERN_ERR PFX "unable to register char device\n");
>>> +             return ret;
>>> +     }
>>> +
>>> +     bfin_otp_class = class_create(THIS_MODULE, "otp");
>>> +     device_create(bfin_otp_class, NULL, bfin_otp_dev_node, "otp");
>> Anyway, wouldn't be easier/better to use misc.c functionality here
>> (misc_register() et al.)?
> 
> probably ... i just didnt want to statically allocate a number in the
> range that would be Blackfin specific ...

MISC_DYNAMIC_MINOR is definitely your friend ;).

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ