Drivers: media: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -369,7 +369,7 @@ static const unsigned short bt819_addrs[] = { 0x45, I2C_CLIENT_END };
|
||||
static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END };
|
||||
static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END };
|
||||
|
||||
static struct card_info zoran_cards[NUM_CARDS] __devinitdata = {
|
||||
static struct card_info zoran_cards[NUM_CARDS] = {
|
||||
{
|
||||
.type = DC10_old,
|
||||
.name = "DC10(old)",
|
||||
@@ -948,8 +948,7 @@ zoran_open_init_params (struct zoran *zr)
|
||||
zr->testing = 0;
|
||||
}
|
||||
|
||||
static void __devinit
|
||||
test_interrupts (struct zoran *zr)
|
||||
static void test_interrupts (struct zoran *zr)
|
||||
{
|
||||
DEFINE_WAIT(wait);
|
||||
int timeout, icr;
|
||||
@@ -974,8 +973,7 @@ test_interrupts (struct zoran *zr)
|
||||
btwrite(icr, ZR36057_ICR);
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
zr36057_init (struct zoran *zr)
|
||||
static int zr36057_init (struct zoran *zr)
|
||||
{
|
||||
int j, err;
|
||||
|
||||
@@ -1083,7 +1081,7 @@ exit_free:
|
||||
return err;
|
||||
}
|
||||
|
||||
static void __devexit zoran_remove(struct pci_dev *pdev)
|
||||
static void zoran_remove(struct pci_dev *pdev)
|
||||
{
|
||||
struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev);
|
||||
struct zoran *zr = to_zoran(v4l2_dev);
|
||||
@@ -1129,9 +1127,8 @@ zoran_vdev_release (struct video_device *vdev)
|
||||
kfree(vdev);
|
||||
}
|
||||
|
||||
static struct videocodec_master * __devinit
|
||||
zoran_setup_videocodec (struct zoran *zr,
|
||||
int type)
|
||||
static struct videocodec_master *zoran_setup_videocodec(struct zoran *zr,
|
||||
int type)
|
||||
{
|
||||
struct videocodec_master *m = NULL;
|
||||
|
||||
@@ -1192,8 +1189,7 @@ static void zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd, void *
|
||||
* Scan for a Buz card (actually for the PCI controller ZR36057),
|
||||
* request the irq and map the io memory
|
||||
*/
|
||||
static int __devinit zoran_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
unsigned char latency, need_latency;
|
||||
struct zoran *zr;
|
||||
@@ -1459,7 +1455,7 @@ static struct pci_driver zoran_driver = {
|
||||
.name = "zr36067",
|
||||
.id_table = zr36067_pci_tbl,
|
||||
.probe = zoran_probe,
|
||||
.remove = __devexit_p(zoran_remove),
|
||||
.remove = zoran_remove,
|
||||
};
|
||||
|
||||
static int __init zoran_init(void)
|
||||
|
@@ -3080,7 +3080,7 @@ static const struct v4l2_file_operations zoran_fops = {
|
||||
.poll = zoran_poll,
|
||||
};
|
||||
|
||||
struct video_device zoran_template __devinitdata = {
|
||||
struct video_device zoran_template = {
|
||||
.name = ZORAN_NAME,
|
||||
.fops = &zoran_fops,
|
||||
.ioctl_ops = &zoran_ioctl_ops,
|
||||
|
Reference in New Issue
Block a user