Skip to content

Commit

Permalink
radio-bcm2048: Add DT support
Browse files Browse the repository at this point in the history
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
  • Loading branch information
pali committed Dec 14, 2016
1 parent c2f4e9e commit e16e531
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/staging/media/bcm2048/radio-bcm2048.c
Original file line number Diff line number Diff line change
Expand Up @@ -2777,9 +2777,18 @@ static const struct i2c_device_id bcm2048_id[] = {
};
MODULE_DEVICE_TABLE(i2c, bcm2048_id);

#ifdef CONFIG_OF
static const struct of_device_id bcm2048_of_match_table[] = {
{ .compatible = "brcm,bcm2048-radio" },
{},
};
MODULE_DEVICE_TABLE(of, bcm2048_of_match_table);
#endif

static struct i2c_driver bcm2048_i2c_driver = {
.driver = {
.name = BCM2048_DRIVER_NAME,
.of_match_table = of_match_ptr(bcm2048_of_match_table),
},
.probe = bcm2048_i2c_driver_probe,
.remove = __exit_p(bcm2048_i2c_driver_remove),
Expand Down

0 comments on commit e16e531

Please sign in to comment.